Skip to content

Commit

Permalink
Revert "ehci: make idt processing more robust"
Browse files Browse the repository at this point in the history
This reverts commit 156a2e4.

Breaks FreeBSD.

Signed-off-by: Gerd Hoffmann <[email protected]>
  • Loading branch information
kraxel committed Apr 19, 2016
1 parent 1ae3f2f commit a49923d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions hw/usb/hcd-ehci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1397,7 +1397,7 @@ static int ehci_process_itd(EHCIState *ehci,
{
USBDevice *dev;
USBEndpoint *ep;
uint32_t i, len, pid, dir, devaddr, endp, xfers = 0;
uint32_t i, len, pid, dir, devaddr, endp;
uint32_t pg, off, ptr1, ptr2, max, mult;

ehci->periodic_sched_active = PERIODIC_ACTIVE;
Expand Down Expand Up @@ -1489,10 +1489,9 @@ static int ehci_process_itd(EHCIState *ehci,
ehci_raise_irq(ehci, USBSTS_INT);
}
itd->transact[i] &= ~ITD_XACT_ACTIVE;
xfers++;
}
}
return xfers ? 0 : -1;
return 0;
}


Expand Down

0 comments on commit a49923d

Please sign in to comment.