• David Brownell's avatar
    [PATCH] usb problems (ohci-hcd + printer) · 8c339122
    David Brownell authored
    This fixes a number of issues in OHCI:
    
     - Force out the PCI write disabling control/bulk queues.
       This "shouldn't" matter, they're empty.
    
     - The rule is that if an ED is IDLE, its OK to just
       schedule it and start appending TDs.  Hard to do that
       when the typical error path left them still halted!
    
     - Sometimes ed->hwTailP needs updating when TDs are
       removed from the queue, not just ed->hwHeadP. Oops.
    
     - Oh, and it's not the high bits we want to save when
       we unlink ... it's the low bits (actually just toggle).
    
    Except for forcing the writes to the controller, these patches should
    only affect (improve :) fault and unlink handling.
    8c339122
ohci-q.c 27.3 KB