Linux USB
 help / color / mirror / Atom feed
* [PATCH 1/1] USB: core: also treat eUSB2V2 as eUSB2 regarding ISO transfers
@ 2025-10-06 16:44 Oliver Neukum
  2025-10-06 18:06 ` Thinh Nguyen
  0 siblings, 1 reply; 5+ messages in thread
From: Oliver Neukum @ 2025-10-06 16:44 UTC (permalink / raw)
  To: amardeep.rai, r.kannappan, mathias.nyman, sakari.ailus, stern,
	gregkh, linux-usb
  Cc: Oliver Neukum

eUSB2V2 devices use a bcdUSB of 0x0230, not 0x0220
to identify as eUSB2 devices, yet their endpoint companion
descriptors must also be parsed.

Fixes: c749f058b4371 ("USB: core: Add eUSB2 descriptor and parsing in USB core")
Signed-off-by: Oliver Neukum <oneukum@suse.com>
---
 drivers/usb/core/config.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/core/config.c b/drivers/usb/core/config.c
index baf5bc844b6f..c96ef5e9b74d 100644
--- a/drivers/usb/core/config.c
+++ b/drivers/usb/core/config.c
@@ -455,7 +455,7 @@ static int usb_parse_endpoint(struct device *ddev, int cfgno,
 	 */
 	maxp = le16_to_cpu(endpoint->desc.wMaxPacketSize);
 
-	if (maxp == 0 && bcdUSB != 0x0220 &&
+	if (maxp == 0 && bcdUSB != 0x0220 && bcdUSB != 0x0230 &&
 	    !(usb_endpoint_xfer_isoc(d) && asnum == 0))
 		dev_notice(ddev, "config %d interface %d altsetting %d endpoint 0x%X has invalid wMaxPacketSize 0\n",
 		    cfgno, inum, asnum, d->bEndpointAddress);
@@ -507,7 +507,7 @@ static int usb_parse_endpoint(struct device *ddev, int cfgno,
 	}
 
 	/* Parse a possible eUSB2 periodic endpoint companion descriptor */
-	if (udev->speed == USB_SPEED_HIGH && bcdUSB == 0x0220 &&
+	if (udev->speed == USB_SPEED_HIGH && (bcdUSB == 0x0220 || bcdUSB == 0x0230) &&
 	    !le16_to_cpu(d->wMaxPacketSize) && usb_endpoint_is_isoc_in(d))
 		usb_parse_eusb2_isoc_endpoint_companion(ddev, cfgno, inum, asnum,
 							endpoint, buffer, size);
-- 
2.51.0


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

end of thread, other threads:[~2025-10-06 18:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-06 16:44 [PATCH 1/1] USB: core: also treat eUSB2V2 as eUSB2 regarding ISO transfers Oliver Neukum
2025-10-06 18:06 ` Thinh Nguyen
2025-10-06 18:14   ` Oliver Neukum
2025-10-06 18:33     ` Thinh Nguyen
2025-10-06 18:38     ` Michal Pecio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox