diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2008-04-28 11:06:28 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-07-21 15:15:47 -0700 |
commit | 24618b0cd42f936cda461bdf6144670a5c925178 (patch) | |
tree | dfcc0d831eb24f7466bbb3ebb2a69b3d93622120 /drivers/char/ds1620.c | |
parent | b01b03f3ad82b4293f6ca4da9b2692b6a377c609 (diff) |
USB: debounce before unregistering
This patch (as1080) makes a significant change to the way khubd
handles port connect-change and enable-change events. Both types of
event are now debounced, and the debouncing is carried out _before_ an
existing usb_device is unregistered, instead of afterward.
This means that drivers will have to deal with longer runs of errors
when a device is unplugged, but they are supposed to be prepared for
that in any case.
The advantage is that when an enable-change occurs (caused for example
by electromagnetic interference), the debouncing period will provide
time for the cause of the problem to die away. A simple port reset
(added in a forthcoming patch) will then allow us to recover from the
fault.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/char/ds1620.c')
0 files changed, 0 insertions, 0 deletions