From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:58150) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3SOc-0005Sj-IJ for qemu-devel@nongnu.org; Fri, 02 Mar 2012 08:19:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S3SOV-0007t7-1Q for qemu-devel@nongnu.org; Fri, 02 Mar 2012 08:19:42 -0500 Received: from mx1.redhat.com ([209.132.183.28]:21826) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3SOU-0007sS-PA for qemu-devel@nongnu.org; Fri, 02 Mar 2012 08:19:34 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q22DJWaG012348 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 2 Mar 2012 08:19:33 -0500 From: Gerd Hoffmann Date: Fri, 2 Mar 2012 14:19:27 +0100 Message-Id: <1330694370-1078-5-git-send-email-kraxel@redhat.com> In-Reply-To: <1330694370-1078-1-git-send-email-kraxel@redhat.com> References: <1330694370-1078-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 4/7] usb-host: enable pipelineing for bulk endpoints. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann 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 --- usb-linux.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/usb-linux.c b/usb-linux.c index 47994f3..4ecb323 100644 --- a/usb-linux.c +++ b/usb-linux.c @@ -1186,6 +1186,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; -- 1.7.1