From: Oliver Neukum <oneukum@suse.com>
To: Thinh Nguyen <Thinh.Nguyen@synopsys.com>,
Oliver Neukum <oneukum@suse.com>
Cc: "amardeep.rai@intel.com" <amardeep.rai@intel.com>,
"r.kannappan@intel.com" <r.kannappan@intel.com>,
"mathias.nyman@linux.intel.com" <mathias.nyman@linux.intel.com>,
"sakari.ailus@linux.intel.com" <sakari.ailus@linux.intel.com>,
"stern@rowland.harvard.edu" <stern@rowland.harvard.edu>,
"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>
Subject: Re: [PATCH 1/1] USB: core: also treat eUSB2V2 as eUSB2 regarding ISO transfers
Date: Mon, 6 Oct 2025 20:14:46 +0200 [thread overview]
Message-ID: <692e4565-507e-430c-ba97-dc6d6539f800@suse.com> (raw)
In-Reply-To: <20251006180610.lhlzfeo5z6zxgekm@synopsys.com>
On 06.10.25 20:06, Thinh Nguyen wrote:
> On Mon, Oct 06, 2025, Oliver Neukum wrote:
>> 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")
>
> This is not a fix.
It is backwards compatible to eUSB2V1, isn't it?
So we are failing to treat an eUSB2V2 devices as
an eUSB2V1 device when we should do so.
>> 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))
>
> eUSB2v2 supports isoc OUT also.
Noted
Regards
Oliver
next prev parent reply other threads:[~2025-10-06 18:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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=692e4565-507e-430c-ba97-dc6d6539f800@suse.com \
--to=oneukum@suse.com \
--cc=Thinh.Nguyen@synopsys.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