• A
    USB: optimize port debouncing during hub activation · 948fea37
    Alan Stern 提交于
    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: NAlan Stern <stern@rowland.harvard.edu>
    Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
    948fea37
hub.c 95.6 KB