Devicetree
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut@mailbox.org>
To: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Cc: "linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
	Thanh Quan <thanh.quan.xn@renesas.com>,
	Conor Dooley <conor+dt@kernel.org>,
	Geert Uytterhoeven <geert+renesas@glider.be>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Rob Herring <robh@kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-renesas-soc@vger.kernel.org"
	<linux-renesas-soc@vger.kernel.org>
Subject: Re: [PATCH v4 2/2] usb: dwc3: dwc3-generic-plat: Add Renesas R-Car Gen5 DWC3 xHCI USB controller glue
Date: Thu, 27 Aug 2026 12:05:25 +0200	[thread overview]
Message-ID: <8d10ebf5-bd75-4566-96f9-b34aa1104ee5@mailbox.org> (raw)
In-Reply-To: <ao4yJCNXAHDYm8Bf@vbox>

On 8/26/26 2:35 AM, Thinh Nguyen wrote:

Hello Thinh,

>> +static int dwc3_renesas_rcar_gen5_init(struct dwc3_generic *dwc3g)
>> +{
>> +	struct device *dev = dwc3g->dev;
>> +	struct platform_device *pdev = to_platform_device(dev);
>> +	enum usb_device_speed speed = usb_get_maximum_speed(dev);
>> +	bool usb2only = false;
>> +	void __iomem *glue;
>> +
>> +	/* Wireless USB is not supported */
>> +	if (speed == USB_SPEED_WIRELESS)
>> +		return dev_err_probe(dev, -EINVAL, "Wireless USB not supported\n");
>> +
>> +	/* No USB 3 PHY in DT means this is surely USB 2 controller */
>> +	if (device_property_match_string(dev, "phy-names", "usb3-phy") < 0)
>> +		usb2only = true;
>> +
>> +	/*
>> +	 * Controller can be limited to USB 2 via optional maximum-speed DT
>> +	 * property. If the DT property is not present, default to maximum
>> +	 * controller capabilities.
>> +	 */
> 
> Minor nit: This comment does not give any new info than what's
> documented in the maximum-speed property, do we need to repeat it here?
> 
>> +	if (speed >= USB_SPEED_LOW && speed <= USB_SPEED_HIGH)
>> +		usb2only = true;
> 
> We don't support low speed or wireless, just check for speed <=
> USB_SPEED_HIGH should be sufficient. The rest looks fine.
I will fix that in V5 and submit it shortly, thanks !

  reply	other threads:[~2026-08-27 10:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-19  5:00 [PATCH v4 1/2] dt-bindings: usb: dwc3: Document Renesas R-Car Gen5 DWC3 xHCI USB controller Marek Vasut
2026-08-19  5:00 ` [PATCH v4 2/2] usb: dwc3: dwc3-generic-plat: Add Renesas R-Car Gen5 DWC3 xHCI USB controller glue Marek Vasut
2026-08-19  5:08   ` sashiko-bot
2026-08-26  0:35   ` Thinh Nguyen
2026-08-27 10:05     ` Marek Vasut [this message]
2026-08-19  5:08 ` [PATCH v4 1/2] dt-bindings: usb: dwc3: Document Renesas R-Car Gen5 DWC3 xHCI USB controller sashiko-bot
2026-08-27  9:18 ` Krzysztof Kozlowski

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=8d10ebf5-bd75-4566-96f9-b34aa1104ee5@mailbox.org \
    --to=marek.vasut@mailbox.org \
    --cc=Thinh.Nguyen@synopsys.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=geert+renesas@glider.be \
    --cc=gregkh@linuxfoundation.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=thanh.quan.xn@renesas.com \
    /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