[SeaBIOS] [RFC PATCH 03/16] usb-uhci: wait tick after sending data
Paolo Bonzini
pbonzini at redhat.com
Tue Nov 15 17:01:11 CET 2011
This fixes a timing problem when doing two consecutive USB_DIR_OUT
sends. It is visible for example when writing to a USB device.
Signed-off-by: Paolo Bonzini <pbonzini at redhat.com>
---
src/usb-uhci.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/usb-uhci.c b/src/usb-uhci.c
index f3680d3..2435aff 100644
--- a/src/usb-uhci.c
+++ b/src/usb-uhci.c
@@ -496,6 +496,7 @@ uhci_send_bulk(struct usb_pipe *p, int dir, void *data, int datasize)
}
SET_FLATPTR(pipe->toggle, !!toggle);
+ uhci_waittick(GET_FLATPTR(pipe->iobase));
return 0;
fail:
dprintf(1, "uhci_send_bulk failed\n");
--
1.7.7.1
More information about the SeaBIOS
mailing list