From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: Sascha Hauer <s.hauer@pengutronix.de>,
Barebox List <barebox@lists.infradead.org>
Subject: Re: [PATCH] usb: dwc3: add am62 support
Date: Mon, 17 Feb 2025 15:34:16 +0100 [thread overview]
Message-ID: <a06cfea0-5584-4173-ae9b-aafa2f5d0142@pengutronix.de> (raw)
In-Reply-To: <20250108153216.484573-1-s.hauer@pengutronix.de>
Hello Sascha,
On 08.01.25 16:32, Sascha Hauer wrote:
> This adds the glue code necessary for the DWC3 controller on TI AM62x
> SoCs. The code is based on the corresponding Linux driver as of
> Linux-6.13-rc1.
>
> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sorry for the late review, but I have a question.
> + /* Calculate the rate code */
> + rate = clk_get_rate(am62->usb2_refclk);
> + rate /= 1000; // To KHz
Nitpick: We have HZ_PER_KHZ, which would save you a comment.
> + ret = of_platform_populate(node, NULL, dev);
> + if (ret) {
> + dev_err_probe(dev, ret, "failed to create dwc3 core\n");
> + goto err_pm_disable;
> + }
> +
> + /* Set mode valid bit to indicate role is valid */
> + reg = dwc3_ti_readl(am62, USBSS_MODE_CONTROL);
> + reg |= USBSS_MODE_VALID;
> + dwc3_ti_writel(am62, USBSS_MODE_CONTROL, reg);
It's odd to do this after of_platform_populate. A deep probe
system would always try to initialize DWC3 without this
set, wouldn't it?
Cheers,
Ahmad
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next prev parent reply other threads:[~2025-02-17 14:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-08 15:32 Sascha Hauer
2025-01-10 8:28 ` Sascha Hauer
2025-02-17 14:34 ` Ahmad Fatoum [this message]
2025-02-17 14:46 ` Sascha Hauer
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=a06cfea0-5584-4173-ae9b-aafa2f5d0142@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=s.hauer@pengutronix.de \
/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