208-usb2_fix.patch 638 B

12345678910111213141516
  1. Index: linux-2.4.35.4/drivers/usb/host/ehci-q.c
  2. ===================================================================
  3. --- linux-2.4.35.4.orig/drivers/usb/host/ehci-q.c
  4. +++ linux-2.4.35.4/drivers/usb/host/ehci-q.c
  5. @@ -782,6 +782,11 @@ static void qh_link_async (struct ehci_h
  6. if (!(cmd & CMD_ASE)) {
  7. /* in case a clear of CMD_ASE didn't take yet */
  8. (void) handshake (&ehci->regs->status, STS_ASS, 0, 150);
  9. +
  10. + /* force async head to be valid */
  11. + writel ((u32)ehci->async->qh_dma,
  12. + &ehci->regs->async_next);
  13. +
  14. cmd |= CMD_ASE | CMD_RUN;
  15. writel (cmd, &ehci->regs->command);
  16. ehci->hcd.state = USB_STATE_RUNNING;