From: Ralph Siemsen <ralph.siemsen@linaro.org>
To: Marek Vasut <marek.vasut@mailbox.org>
Cc: u-boot@lists.u-boot-project.org, Peng Fan <peng.fan@nxp.com>,
Jaehoon Chung <jh80.chung@samsung.com>,
Tom Rini <trini@konsulko.com>,
Marek Vasut <marek.vasut+renesas@mailbox.org>,
Michal Simek <michal.simek@amd.com>,
Bastien Curutchet <bastien.curutchet@bootlin.com>,
Anshul Dalal <anshuld@ti.com>, Johan Jonker <jbx6244@gmail.com>
Subject: Re: [PATCH v2] mmc: zynq_sdhci: support Renesas RZ/N1
Date: Tue, 25 Aug 2026 15:47:41 -0400 [thread overview]
Message-ID: <ao3xXc7dNbFmKEha@maple.netwinder.org> (raw)
In-Reply-To: <4e3a48d8-d971-402f-9542-820f254abc77@mailbox.org>
On Sat, Aug 15, 2026 at 12:21:11AM +0200, Marek Vasut wrote:
>On 8/14/26 8:30 PM, Ralph Siemsen wrote:
>
>[...]
>
>>+++ b/drivers/mmc/zynq_sdhci.c
>
>[...]
>
>>@@ -1152,13 +1177,13 @@ static int arasan_sdhci_probe(struct udevice *dev)
>> }
>> }
>>- ret = clk_get_by_index(dev, 0, &clk);
>>+ ret = clk_get_bulk(dev, &clks);
>> if (ret < 0) {
>>- dev_err(dev, "failed to get clock\n");
>>+ dev_err(dev, "failed to get clock(s)\n");
>
>"failed to get clock(s) (%d)\n", ret);
>
>Please fix globally.
Will do in v3. I'll just do the clock-related debug prints, since I am
modifying them already.
There are other (non-clock) debug prints that could benefit from same
treatment, but that would be better done as a separate cleanup patch.
>> return ret;
>> }
>>- clock = clk_get_rate(&clk);
>>+ clock = clk_get_rate(&clks.clks[0]);
>
>Can the clock ever be non-first clock , i.e. do you need to handle
>clock-names DT property somehow ?
It's not clear to me if the DT binding specifies the order. It says
there must be either 2 or 3 clocks, as well as clock-names properties.
Existing DTS files (rzn1 and zynqmp) have it as the first clock.
We could try using the name ("clk_xin") and if that fails, fall back on
using the first clock.
Regards,
Ralph
next prev parent reply other threads:[~2026-08-25 19:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-14 18:30 [PATCH v2] mmc: zynq_sdhci: support Renesas RZ/N1 Ralph Siemsen
2026-08-14 22:21 ` Marek Vasut via U-Boot
2026-08-25 19:47 ` Ralph Siemsen [this message]
2026-08-25 20:44 ` Marek Vasut
2026-08-27 14:12 ` Ralph Siemsen
2026-08-27 16:53 ` 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=ao3xXc7dNbFmKEha@maple.netwinder.org \
--to=ralph.siemsen@linaro.org \
--cc=anshuld@ti.com \
--cc=bastien.curutchet@bootlin.com \
--cc=jbx6244@gmail.com \
--cc=jh80.chung@samsung.com \
--cc=marek.vasut+renesas@mailbox.org \
--cc=marek.vasut@mailbox.org \
--cc=michal.simek@amd.com \
--cc=peng.fan@nxp.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.u-boot-project.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