From: Mikko Perttunen <mperttunen@nvidia.com>
To: Prashant Gaikwad <pgaikwad@nvidia.com>,
Stephen Boyd <sboyd@kernel.org>,
linux-clk@vger.kernel.org
Cc: Karl Mehltretter <kmehltretter@gmail.com>,
Brian Masney <bmasney+clk@redhat.com>,
Jerome Brunet <jbrunet+clk@baylibre.com>,
Thierry Reding <thierry.reding@kernel.org>,
Jonathan Hunter <jonathanh@nvidia.com>,
linux-clk@vger.kernel.org, linux-tegra@vger.kernel.org,
linux-kernel@vger.kernel.org,
Karl Mehltretter <kmehltretter@gmail.com>
Subject: Re: [PATCH] clk: tegra: Fix Tegra210 IQC2 clock lookup
Date: Thu, 26 Nov 2026 16:58:22 +0900 [thread overview]
Message-ID: <C1R-z2jTSnCjUfGh68ynjA@nvidia.com> (raw)
In-Reply-To: <20261024110113.63341-1-kmehltretter@gmail.com>
On Saturday, October 24, 2026 8:01 PM Karl Mehltretter wrote:
> gate_clks[] uses tegra_clk_iqc1 for both iqc1 and iqc2. On Tegra210,
> gate_clk_init() overwrites the TEGRA210_CLK_IQC1 provider entry with
> iqc2 and leaves TEGRA210_CLK_IQC2 unpopulated, so looking up
> TEGRA210_CLK_IQC2 fails with -EINVAL.
>
> Use tegra_clk_iqc2 for the iqc2 gate.
>
> Fixes: 88da44c5edb9 ("clk: tegra: Add missing Tegra210 clocks")
> Assisted-by: LLM
> Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com>
> ---
> Tested on a Jetson Nano 4GB (Tegra210) with a small probe module that
> calls of_clk_get_from_provider() on the Tegra210 CAR node. Unpatched,
> TEGRA210_CLK_IQC2 (220) returns -EINVAL and TEGRA210_CLK_IQC1 (221)
> resolves to iqc2. With this patch on 5b0764a53235, ID 220 resolves to
> iqc2 and ID 221 resolves to iqc1.
>
> drivers/clk/tegra/clk-tegra-periph.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/tegra/clk-tegra-periph.c b/drivers/clk/tegra/clk-tegra-periph.c
> index 4dcf7f7..47bb657 100644
> --- a/drivers/clk/tegra/clk-tegra-periph.c
> +++ b/drivers/clk/tegra/clk-tegra-periph.c
> @@ -813,7 +813,7 @@ static struct tegra_periph_init_data gate_clks[] = {
> GATE("apb2ape", "clk_m", 107, 0, tegra_clk_apb2ape, 0),
> GATE("cec", "pclk", 136, 0, tegra_clk_cec, 0),
> GATE("iqc1", "clk_m", 221, 0, tegra_clk_iqc1, 0),
> - GATE("iqc2", "clk_m", 220, 0, tegra_clk_iqc1, 0),
> + GATE("iqc2", "clk_m", 220, 0, tegra_clk_iqc2, 0),
> GATE("pll_a_out_adsp", "pll_a", 188, 0, tegra_clk_pll_a_out_adsp, 0),
> GATE("pll_a_out0_out_adsp", "pll_a", 188, 0, tegra_clk_pll_a_out0_out_adsp, 0),
> GATE("adsp", "aclk", 199, 0, tegra_clk_adsp, 0),
>
> base-commit: 5b0764a53235d3c77e1ed674e836e1b3fe1a4b1f
> --
> 2.39.5 (Apple Git-154)
>
>
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
prev parent reply other threads:[~2026-11-26 7:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-24 11:01 Karl Mehltretter
2026-11-26 7:58 ` Mikko Perttunen [this message]
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=C1R-z2jTSnCjUfGh68ynjA@nvidia.com \
--to=mperttunen@nvidia.com \
--cc=bmasney+clk@redhat.com \
--cc=jbrunet+clk@baylibre.com \
--cc=jonathanh@nvidia.com \
--cc=kmehltretter@gmail.com \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=pgaikwad@nvidia.com \
--cc=sboyd@kernel.org \
--cc=thierry.reding@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
all inboxes | Powered by JetHome®