• Dan Streetman's avatar
    [PATCH] uhci interrupt resubmit fixes · 5d127a7f
    Dan Streetman authored
    After the interrupt queueing was added, I don't think the old way of
    resetting interrupts will work anymore.  This patch changes it to simply
    do a full unlink and resubmission automatically.  Note that since
    usb_hcd_giveback_urb() is never called for a resubmitting interrupt URB,
    that means whatever gets released in usb_hcd_giveback_urb() won't get
    released for that URB.  The only way to work around that is call
    usb_hcd_giveback_urb after the user unlinks in their completion handler,
    which will call the completion handler again with -ECONNRESET
    status...which wouldn't be all that bad, but the drivers have to expect
    it.
    
    Hopefully the interrupt resubmission will go away soon...
    5d127a7f
uhci-hcd.c 61.2 KB