[prev in list] [next in list] [prev in thread] [next in thread]
List: libusb-devel
Subject: Re: [libusb] Invalid Maxpacket 64 bits
From: Ludovic Rousseau <ludovic.rousseau () gmail ! com>
Date: 2016-07-05 9:03:31
Message-ID: CAGstE8DbJTY-snT+17SNuX3e8BpGvGd5kYBbj2ZfU0dOg_C-6Q () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
2016-07-04 23:21 GMT+02:00 Alan Stern <stern@rowland.harvard.edu>:
> On Mon, 4 Jul 2016, Ludovic Rousseau wrote:
>
> > Hello,
> >
> > I have a similar problem on my Debian GNU/Linux 4.6.0-1-amd64.
> >
> > dmesg reports:
>
> You omitted the first line of output, where the device's speed is
> given.
>
Sorry.
Here are all the kernel messages regarding usb 1-10:
[ 1.537362] usb 1-10: new high-speed USB device number 3 using xhci_hcd
[ 1.737388] usb 1-10: config 0 interface 0 altsetting 0 bulk endpoint
0x81 has invalid maxpacket 64
[ 1.737396] usb 1-10: config 0 interface 0 altsetting 0 bulk endpoint
0x1 has invalid maxpacket 64
[ 1.737401] usb 1-10: config 0 interface 1 altsetting 0 bulk endpoint
0x82 has invalid maxpacket 64
[ 1.737404] usb 1-10: config 0 interface 1 altsetting 0 bulk endpoint
0x2 has invalid maxpacket 64
[ 1.737408] usb 1-10: config 0 interface 2 altsetting 0 bulk endpoint
0x83 has invalid maxpacket 64
[ 1.737411] usb 1-10: config 0 interface 2 altsetting 0 bulk endpoint
0x3 has invalid maxpacket 64
[ 1.737414] usb 1-10: config 0 interface 3 altsetting 0 bulk endpoint
0x84 has invalid maxpacket 64
[ 1.737418] usb 1-10: config 0 interface 3 altsetting 0 bulk endpoint
0x4 has invalid maxpacket 64
[ 1.753532] usb 1-10: New USB device found, idVendor=0a5c, idProduct=5805
[ 1.753539] usb 1-10: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[ 1.753543] usb 1-10: Product: 5880
[ 1.753546] usb 1-10: Manufacturer: Broadcom Corp
[ 1.753549] usb 1-10: SerialNumber: 0123456789ABCD
[ 1.753913] usb 1-10: config 0 descriptor??
I assume this device connected at high speed. Those warning messages
> are printed only for high-speed devices.
>
It looks like you are correct: "usb 1-10: new high-speed USB device number
3 using xhci_hcd"
>
> The USB spec says that all high-speed bulk endpoints must have their
> maxpacket value set to 512.
>
> > [ 1.753532] usb 1-10: New USB device found, idVendor=0a5c,
> idProduct=5805
> > [ 1.753539] usb 1-10: New USB device strings: Mfr=1, Product=2,
> > SerialNumber=3
> > [ 1.753543] usb 1-10: Product: 5880
> > [ 1.753546] usb 1-10: Manufacturer: Broadcom Corp
> > [ 1.753549] usb 1-10: SerialNumber: 0123456789ABCD
> > [ 1.753913] usb 1-10: config 0 descriptor??
>
> bConfigurationValue is never supposed to be 0.
>
> > The problem is not just the kernel "warnings". I also get transfer
> issues.
> > For example libusb_bulk_transfer() returns only the first 64 bytes of
> > data when I am expecting much more.
> >
> > The USB device is from Broadcom with 2 smart cards interfaces (and
> > other interfaces) internal in a Dell laptop E5570.
> >
> > Is the USB device buggy?
>
> Yes, it is.
>
OK.
I will try to report the problem to Broadcom and/or Dell.
Thanks.
--
Dr. Ludovic Rousseau
[Attachment #5 (text/html)]
<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2016-07-04 \
23:21 GMT+02:00 Alan Stern <span dir="ltr"><<a \
href="mailto:stern@rowland.harvard.edu" \
target="_blank">stern@rowland.harvard.edu</a>></span>:<br><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><span>On Mon, 4 Jul 2016, Ludovic Rousseau \
wrote:<br> <br>
> Hello,<br>
><br>
> I have a similar problem on my Debian GNU/Linux 4.6.0-1-amd64.<br>
><br>
> dmesg reports:<br>
<br>
</span>You omitted the first line of output, where the device's speed is<br>
given.<br></blockquote><div><br></div><div>Sorry.<br></div><div>Here are all the \
kernel messages regarding usb 1-10: <br></div><div><br></div><div>[ 1.537362] \
usb 1-10: new high-speed USB device number 3 using xhci_hcd<br>[ 1.737388] usb \
1-10: config 0 interface 0 altsetting 0 bulk endpoint 0x81 has invalid maxpacket \
64<br>[ 1.737396] usb 1-10: config 0 interface 0 altsetting 0 bulk endpoint 0x1 \
has invalid maxpacket 64<br>[ 1.737401] usb 1-10: config 0 interface 1 \
altsetting 0 bulk endpoint 0x82 has invalid maxpacket 64<br>[ 1.737404] usb \
1-10: config 0 interface 1 altsetting 0 bulk endpoint 0x2 has invalid maxpacket \
64<br>[ 1.737408] usb 1-10: config 0 interface 2 altsetting 0 bulk endpoint \
0x83 has invalid maxpacket 64<br>[ 1.737411] usb 1-10: config 0 interface 2 \
altsetting 0 bulk endpoint 0x3 has invalid maxpacket 64<br>[ 1.737414] usb \
1-10: config 0 interface 3 altsetting 0 bulk endpoint 0x84 has invalid maxpacket \
64<br>[ 1.737418] usb 1-10: config 0 interface 3 altsetting 0 bulk endpoint 0x4 \
has invalid maxpacket 64<br>[ 1.753532] usb 1-10: New USB device found, \
idVendor=0a5c, idProduct=5805<br>[ 1.753539] usb 1-10: New USB device strings: \
Mfr=1, Product=2, SerialNumber=3<br>[ 1.753543] usb 1-10: Product: 5880<br>[ \
1.753546] usb 1-10: Manufacturer: Broadcom Corp<br>[ 1.753549] usb 1-10: \
SerialNumber: 0123456789ABCD<br>[ 1.753913] usb 1-10: config 0 descriptor??<br> \
<span></span><br><span></span><span></span><br><span></span></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><span> </span>I assume this device connected at \
high speed. Those warning messages<br> are printed only for high-speed \
devices.<br></blockquote><div><br></div><div>It looks like you are correct: "usb \
1-10: new high-speed USB device number 3 using xhci_hcd"<br> \
<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <br>
The USB spec says that all high-speed bulk endpoints must have their<br>
maxpacket value set to 512.<br>
<span><br>
> [ 1.753532] usb 1-10: New USB device found, idVendor=0a5c, \
idProduct=5805<br> > [ 1.753539] usb 1-10: New USB device strings: Mfr=1, \
Product=2,<br> > SerialNumber=3<br>
> [ 1.753543] usb 1-10: Product: 5880<br>
> [ 1.753546] usb 1-10: Manufacturer: Broadcom Corp<br>
> [ 1.753549] usb 1-10: SerialNumber: 0123456789ABCD<br>
> [ 1.753913] usb 1-10: config 0 descriptor??<br>
<br>
</span>bConfigurationValue is never supposed to be 0.<br>
<span><br>
> The problem is not just the kernel "warnings". I also get transfer \
issues.<br> > For example libusb_bulk_transfer() returns only the first 64 bytes \
of<br> > data when I am expecting much more.<br>
><br>
> The USB device is from Broadcom with 2 smart cards interfaces (and<br>
> other interfaces) internal in a Dell laptop E5570.<br>
><br>
> Is the USB device buggy?<br>
<br>
</span>Yes, it is.<br></blockquote><div><br></div><div>OK.<br>I will try to report \
the problem to Broadcom and/or \
Dell.<br><span></span><br></div><div>Thanks.<br></div></div><br>-- <br><div \
data-smartmail="gmail_signature"> Dr. Ludovic Rousseau</div> </div></div>
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
libusb-devel mailing list
libusb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic