[SeaBIOS] [PATCH 3/3] usb-ehci: Fix race with host controller.
Kevin O'Connor
kevin at koconnor.net
Fri Nov 18 04:24:18 CET 2011
Port UHCI fix to uhci_send_bulk to EHCI code.
Signed-off-by: Kevin O'Connor <kevin at koconnor.net>
---
src/usb-ehci.c | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
diff --git a/src/usb-ehci.c b/src/usb-ehci.c
index 8ce68ba..8d5ebdf 100644
--- a/src/usb-ehci.c
+++ b/src/usb-ehci.c
@@ -629,15 +629,8 @@ ehci_send_bulk(struct usb_pipe *p, int dir, void *data, int datasize)
data += transfer;
datasize -= transfer;
}
- int i;
- for (i=0; i<STACKQTDS; i++) {
- struct ehci_qtd *td = &tds[tdpos++ % STACKQTDS];
- int ret = ehci_wait_td(td);
- if (ret)
- goto fail;
- }
- return 0;
+ return ehci_wait_pipe(pipe, 5000);
fail:
dprintf(1, "ehci_send_bulk failed\n");
SET_FLATPTR(pipe->qh.qtd_next, EHCI_PTR_TERM);
--
1.7.6.4
More information about the SeaBIOS
mailing list