From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M3nQJ-0002Yz-J8 for qemu-devel@nongnu.org; Tue, 12 May 2009 04:33:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M3nQE-0002Ws-Gi for qemu-devel@nongnu.org; Tue, 12 May 2009 04:33:14 -0400 Received: from [199.232.76.173] (port=43955 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M3nQE-0002Wn-4i for qemu-devel@nongnu.org; Tue, 12 May 2009 04:33:10 -0400 Received: from mu-out-0910.google.com ([209.85.134.188]:15317) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M3nQD-0000PW-NN for qemu-devel@nongnu.org; Tue, 12 May 2009 04:33:09 -0400 Received: by mu-out-0910.google.com with SMTP id g7so1188217muf.2 for ; Tue, 12 May 2009 01:33:08 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1242027306.22141.38.camel@chianamo> References: <1242027306.22141.38.camel@chianamo> Date: Tue, 12 May 2009 11:33:07 +0300 Message-ID: <1295ed070905120133j4a147071g8f685d5db0903ef2@mail.gmail.com> Subject: Re: [Qemu-devel] usb_linux_update_endp_table: Broken pipe From: Pantelis Koukousoulas Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Wise Cc: qemu-devel@nongnu.org > Unfortunately qemu fails to add my USB scanner to the guest: > > $ qemu -M pc -m 256 -smp 1 -name winders -boot c -drive file=winders.img,if=ide,index=0 -usb -usbdevice tablet -usbdevice host:043d:00bb > husb: open device 4.6 > husb: config #1 need -1 > husb: 3 interfaces claimed for configuration 1 > husb: grabbed usb device 4.6 > usb_linux_update_endp_table: Broken pipe > Warning: could not add USB device host:043d:00bb Yes, this is the typical symptom > I note a workaround in this post and I confirm it works (FSVO): > > http://ubuntuforums.org/showpost.php?p=5744172&postcount=5 > > Any thoughts as to what a proper fix might be? It would be good to not > have to rebuild qemu with the workaround every time I update my system. I think it would be worth to just merge this patch. I asked myself a few days ago, but it seems to be a period where qemu moves quite fast (with the move to git and all) and there is no time to review usb patches. Perhaps we should have a usb-specific git tree so that we can test/fix all usb-related patches that are in limbo right now and occasionally propose merges. > > The above workaround works in that it allows Windows to detect the > scanner but there seems to be some other issue because the Windows > scanner app can initiate scans but comes up with a generic error dialog > half way through. Unsure if this has anything to do with qemu. There could be several reasons for that. Note that your device is also a bit on the peculiar side, in that it actually has 3 interfaces (and thus 3 drivers). It could be also a speed/stall problem but this is unlikely since max's work has made the usb backend reasonably fast these days. Cheers, Pantelis