]> Git Repo - qemu.git/commitdiff
usb-host: enable pipelineing for bulk endpoints.
authorGerd Hoffmann <[email protected]>
Thu, 1 Mar 2012 13:42:34 +0000 (14:42 +0100)
committerGerd Hoffmann <[email protected]>
Wed, 7 Mar 2012 11:28:05 +0000 (12:28 +0100)
We really don't want to wait for packets finish before submitting the
next, we want keep the data flow running.

Signed-off-by: Gerd Hoffmann <[email protected]>
usb-linux.c

index 050ea7a87d5717809f50f9b2f60b81c3aae53770..90919c242aef6e8636157ffdabc4b9c0218a8361 100644 (file)
@@ -1192,6 +1192,9 @@ static int usb_linux_update_endp_table(USBHostDevice *s)
                    USB_ENDPOINT_XFER_INVALID);
             usb_ep_set_type(&s->dev, pid, ep, type);
             usb_ep_set_ifnum(&s->dev, pid, ep, interface);
+            if (type == USB_ENDPOINT_XFER_BULK) {
+                usb_ep_set_pipeline(&s->dev, pid, ep, true);
+            }
 
             epd = get_endp(s, pid, ep);
             epd->halted = 0;
This page took 0.026574 seconds and 4 git commands to generate.