• Alan Stern's avatar
    USB: announce new devices earlier · 6cd13201
    Alan Stern authored
    This patch (as1166) changes usb_new_device().  Now new devices will be
    announced in the log _prior_ to being registered; this way the "new
    device" lines will appear before all the output from driver probing,
    which seems much more logical.
    
    Also, the patch adds a call to usb_stop_pm() to the failure pathway,
    so that the parent's count of unsuspended children will remain correct
    if registration fails.  In order for this to work properly, the code
    to increment that count has to be moved forward, before the first
    point where a failure can occur.
    Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    6cd13201
hub.c 100 KB