From: Shinya Kuribayashi Date: Thu, 10 May 2012 01:31:21 +0000 (+0900) Subject: USB: gpio_vbus: provide an appropriate debounce interval X-Git-Tag: v3.5-rc1~149^2~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=934ccec4da14dc0586dfe08b36166364bdd2181b;p=pandora-kernel.git USB: gpio_vbus: provide an appropriate debounce interval In commit c2344f13b59e007d782a3e591ebc551bc583a8b7 (USB: gpio_vbus: add delayed vbus_session calls, 2009-01-24), usb_gadget_vbus_connect() and ...disconnect() were extracted from the interrupt handler, so to allow vbus_session handlers to deal with msleep() calls. This patch takes the approach one step further. USB2.0 specification (7.1.7.3 Connect and Disconnect Signaling) says that the USB system software (shall) provide a debounce interval with a minimum duration of 100 ms, which ensures that the electrical and mechanical connection is stable before software attempts to reset the attached device. Signed-off-by: Shinya Kuribayashi Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed