]> git.baikalelectronics.ru Git - kernel.git/commit
USB: optimize port debouncing during hub activation
authorAlan Stern <stern@rowland.harvard.edu>
Mon, 28 Apr 2008 15:07:07 +0000 (11:07 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Jul 2008 22:15:52 +0000 (15:15 -0700)
commitb3b19ee06f7da3ed680cf1f5487f7597880994a0
treeaa75e31943da805bb613f7738276e352ec10cea0
parentefec53ec2c17dc1c5da03df00913f7af9fd47c7d
USB: optimize port debouncing during hub activation

This patch (as1082) makes a small optimization to the way the hub
driver carries out port debouncing immediately after a hub is
activated (i.e., initialized, reset, or resumed).  If any port-change
statuses are observed, the code will delay for a minimal debounce
period -- thereby making a good start at debouncing all the ports at
once.

If this wasn't sufficient then khubd will debounce any port that still
requires attention.  But in most cases it should suffice; it's rare
for a device to need more than a minimal debounce delay.  (In the
cases of hub initialization or reset even that is most likely not
needed, since any devices plugged in at such times have probably been
attached for a while.)

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hub.c