]> www.pilppa.org Git - linux-2.6-omap-h63xx.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)
commit948fea37dcebfef8f0f2faf00930e7ec7e756e07
treeaa75e31943da805bb613f7738276e352ec10cea0
parent8808f00c7adfc8dc0b797c34ec03490b237fce4e
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