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 <[email protected]>
---
 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



_______________________________________________
SeaBIOS mailing list
[email protected]
http://www.seabios.org/mailman/listinfo/seabios

Reply via email to