]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
usb-host: enable pipelineing for bulk endpoints.
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 1 Mar 2012 13:42:34 +0000 (14:42 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
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 <kraxel@redhat.com>
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;