Linux USB
 help / color / mirror / Atom feed
From: Oliver Neukum <oneukum@suse.com>
To: amardeep.rai@intel.com, r.kannappan@intel.com,
	mathias.nyman@linux.intel.com, sakari.ailus@linux.intel.com,
	stern@rowland.harvard.edu, gregkh@linuxfoundation.org,
	linux-usb@vger.kernel.org
Cc: Oliver Neukum <oneukum@suse.com>
Subject: [PATCH 1/1] USB: core: also treat eUSB2V2 as eUSB2 regarding ISO transfers
Date: Mon,  6 Oct 2025 18:44:51 +0200	[thread overview]
Message-ID: <20251006164500.131899-1-oneukum@suse.com> (raw)

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


             reply	other threads:[~2025-10-06 16:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-06 16:44 Oliver Neukum [this message]
2025-10-06 18:06 ` [PATCH 1/1] USB: core: also treat eUSB2V2 as eUSB2 regarding ISO transfers Thinh Nguyen
2025-10-06 18:14   ` Oliver Neukum
2025-10-06 18:33     ` Thinh Nguyen
2025-10-06 18:38     ` Michal Pecio

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251006164500.131899-1-oneukum@suse.com \
    --to=oneukum@suse.com \
    --cc=amardeep.rai@intel.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=mathias.nyman@linux.intel.com \
    --cc=r.kannappan@intel.com \
    --cc=sakari.ailus@linux.intel.com \
    --cc=stern@rowland.harvard.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox