linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* USB: invalid maxpacket 8
@ 2021-11-18 16:34 Muni Sekhar
  2021-11-18 17:27 ` Alan Stern
  0 siblings, 1 reply; 2+ messages in thread
From: Muni Sekhar @ 2021-11-18 16:34 UTC (permalink / raw)
  To: linux-usb, kernelnewbies, linux-kernel

Hi all,


I'm trying to connect to a USB device on Linux PC and getting an error
about "invalid maxpacket 8". What does it mean? Does this error causes
USB packet transfer failures?

Any ideas how to fix this?

Thank you for any pointers.


dmesg log:
---------------
[1920549.030669] usb 2-2: New USB device found, idVendor=05c6, idProduct=9500

[1920549.030682] usb 2-2: New USB device strings: Mfr=0, Product=0,
SerialNumber=0

[1920549.032623] hub 2-2:1.0: USB hub found

[1920549.032672] hub 2-2:1.0: 7 ports detected

[1920549.302875] usb 2-2.1: new high-speed USB device number 98 using xhci_hcd

[1920549.391765] usb 2-2.1: config 1 interface 0 altsetting 0 bulk
endpoint 0x81 has invalid maxpacket 8

[1920549.391777] usb 2-2.1: config 1 interface 0 altsetting 0 bulk
endpoint 0x2 has invalid maxpacket 8




-- 
Thanks,
Sekhar

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: USB: invalid maxpacket 8
  2021-11-18 16:34 USB: invalid maxpacket 8 Muni Sekhar
@ 2021-11-18 17:27 ` Alan Stern
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Stern @ 2021-11-18 17:27 UTC (permalink / raw)
  To: Muni Sekhar; +Cc: linux-usb, kernelnewbies, linux-kernel

On Thu, Nov 18, 2021 at 10:04:03PM +0530, Muni Sekhar wrote:
> Hi all,
> 
> 
> I'm trying to connect to a USB device on Linux PC and getting an error
> about "invalid maxpacket 8". What does it mean?

It means that the kernel received two endpoint descriptors from the USB 
device containing invalid values.

For devices communicating at High Speed (480 Mb/s) like yours, the 
wMaxPacketSize field in the endpoint descriptor for a Bulk endpoint is 
required to contain the value 512, but your device sent a couple of Bulk 
endpoint descriptors in which wMaxPacketSize was set to 8.  You will see 
the invalid values if you look at the output from "lsusb -v" for the 
device.

>  Does this error causes
> USB packet transfer failures?

This message is only a warning; the kernel will try to communicate with 
the device regardless.  But since that the device is obviously faulty, 
the communication might not work.

> Any ideas how to fix this?

The only way to fix this is to change the device's firmware.

Alan Stern

> Thank you for any pointers.
> 
> 
> dmesg log:
> ---------------
> [1920549.030669] usb 2-2: New USB device found, idVendor=05c6, idProduct=9500
> 
> [1920549.030682] usb 2-2: New USB device strings: Mfr=0, Product=0,
> SerialNumber=0
> 
> [1920549.032623] hub 2-2:1.0: USB hub found
> 
> [1920549.032672] hub 2-2:1.0: 7 ports detected
> 
> [1920549.302875] usb 2-2.1: new high-speed USB device number 98 using xhci_hcd
> 
> [1920549.391765] usb 2-2.1: config 1 interface 0 altsetting 0 bulk
> endpoint 0x81 has invalid maxpacket 8
> 
> [1920549.391777] usb 2-2.1: config 1 interface 0 altsetting 0 bulk
> endpoint 0x2 has invalid maxpacket 8
> 
> 
> 
> 
> -- 
> Thanks,
> Sekhar

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-18 17:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-18 16:34 USB: invalid maxpacket 8 Muni Sekhar
2021-11-18 17:27 ` Alan Stern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).