From: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
To: Marek Vasut <marek.vasut@mailbox.org>
Cc: Thinh Nguyen <Thinh.Nguyen@synopsys.com>,
"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"robh@kernel.org" <robh@kernel.org>,
"conor+dt@kernel.org" <conor+dt@kernel.org>
Subject: Re: [PATCH v5 2/2] usb: dwc3: dwc3-generic-plat: Add Renesas R-Car Gen5 DWC3 xHCI USB controller glue
Date: Wed, 2 Sep 2026 02:29:08 +0000 [thread overview]
Message-ID: <apeGv2_pFzqxP_2j@vbox> (raw)
In-Reply-To: <2634d23f-42de-48f3-b10b-92158e86fdf7@mailbox.org>
On Tue, Sep 01, 2026, Marek Vasut wrote:
> On 9/1/26 3:17 AM, Thinh Nguyen wrote:
>
> Hello Thinh,
>
> > > > , but please drop the speed == USB_SPEED_WIRELESS check. This sanity
> > > > check is not necessary and would be flagged by dwc3 core if set anyway.
> > > Could you please point me to the code which filters the WIRELESS USB out ? I
> > > can't seem to find it in either DWC3 core or USB core, but maybe I am not
> > > looking for the right thing.
> > >
> > > Thank you for your help !
> >
> > You can find this in __dwc3_gadget_set_speed(). The switch statement
> > explicitly handles unsupported speeds, and setting the speed to
> > USB_SPEED_LOW or USB_SPEED_WIRELESS will trigger a complaint there.
>
> But this is only for the gadget/peripheral mode, correct? The controller in
Yes.
> R-Car X5H is capable of both host and peripheral mode (DRD), so shouldn't
> the check be kept in here in case the controller is used in host mode ?
For host, we don't really limit based on the maximum-speed (with the
exception of 3.1 controller which allows limiting down to SuperSpeed)
>
> Thank you for your help !
>
We don't add sanity check for every possible user input, that's not the
pattern dwc3 drivers (or others) follow. Otherwise we'd end up with
endless redundant checks.
BR,
Thinh
next prev parent reply other threads:[~2026-09-02 2:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-28 18:23 [PATCH v5 1/2] dt-bindings: usb: dwc3: Document Renesas R-Car Gen5 DWC3 xHCI USB controller Marek Vasut
2026-08-28 18:23 ` [PATCH v5 2/2] usb: dwc3: dwc3-generic-plat: Add Renesas R-Car Gen5 DWC3 xHCI USB controller glue Marek Vasut
[not found] ` <20260828183046.86F731F000E9@smtp.kernel.org>
2026-08-28 18:36 ` Marek Vasut
2026-08-28 22:40 ` Thinh Nguyen
[not found] ` <1fa4e305-5717-4a99-9e53-3a7fa1c5df1e@mailbox.org>
2026-09-01 1:17 ` Thinh Nguyen
2026-09-01 2:05 ` Marek Vasut
2026-09-02 2:29 ` Thinh Nguyen [this message]
2026-09-03 21:31 ` Marek Vasut
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=apeGv2_pFzqxP_2j@vbox \
--to=thinh.nguyen@synopsys.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=marek.vasut@mailbox.org \
--cc=robh@kernel.org \
/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