• Alan Stern's avatar
    USB: update spinlock usage for root-hub URBs · 9439eb94
    Alan Stern authored
    This patch (as952) adjusts the spinlock usage in the root-hub
    emulation part of usbcore, to make it match more closely the pattern
    used by regular host controller drivers.  To wit: The private lock
    (usb_hcd_root_hub_lock) is held throughout the important parts, and it
    is dropped temporarily without re-enabling interrupts around the call
    to usb_hcd_giveback_urb().
    
    A nice side effect is that the code now avoids calling
    local_irq_save(), thereby becoming more RT-friendly.
    Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    9439eb94
hcd.c 49.5 KB