]> git.baikalelectronics.ru Git - kernel.git/commit
USB: gpio_vbus: provide an appropriate debounce interval
authorShinya Kuribayashi <shinya.kuribayashi.px@renesas.com>
Thu, 10 May 2012 01:31:21 +0000 (10:31 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 May 2012 16:01:50 +0000 (09:01 -0700)
commit09bd10805dbb66caaff6f3bab30ccbd93ca10db7
tree4e1bf55b1f58924e587cbb170d0927fd677cf9be
parent00c4968de22306700d47a1df92ab1a1a3339ab96
USB: gpio_vbus: provide an appropriate debounce interval

In commit 1d8583f99b744a2a29d4bcb00a6cc1d9c5668ef6 (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 <shinya.kuribayashi.px@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/otg/gpio_vbus.c