From: Lee Jones <lee@kernel.org>
To: lee@kernel.org, Andrea della Porta <andrea.porta@suse.com>,
Stephen Boyd <sboyd@kernel.org>,
Brian Masney <bmasney+clk@redhat.com>,
Jerome Brunet <jbrunet+clk@baylibre.com>,
Naushir Patuck <naush@raspberrypi.com>,
Florian Fainelli <florian.fainelli@broadcom.com>,
linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: stable@vger.kernel.org
Subject: [PATCH 08/10] clk: rp1: Reference secondary PLL divider clk_hw in parent tables
Date: Fri, 27 Nov 2026 19:25:32 +0000 [thread overview]
Message-ID: <20261127192620.3443537-9-lee@kernel.org> (raw)
In-Reply-To: <20261127192620.3443537-1-lee@kernel.org>
rp1_register_pll_divider() registers &desc->div.hw rather than
&desc->hw, leaving desc->hw.core NULL for the secondary PLL dividers
pll_sys_sec_desc, pll_video_sec_desc, and pll_audio_sec_desc. Fourteen
clock parent table entries still reference &pll_*_sec_desc.hw instead of
&pll_*_sec_desc.div.hw, causing parent resolution to fail for those
clocks.
Point all fourteen parent entries at .div.hw, matching clk_eth_parents.
Fixes: a7713a7dd159 ("clk: rp1: Implement remaining clock tree")
Closes: https://sashiko.dev/#/bug/linux-4497e5e9-4f3a-4398-8f6a-f2d72a2b61eb
Cc: stable@vger.kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>
---
drivers/clk/clk-rp1.c | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/drivers/clk/clk-rp1.c b/drivers/clk/clk-rp1.c
index cfa7cbefad2e..d5d94d699829 100644
--- a/drivers/clk/clk-rp1.c
+++ b/drivers/clk/clk-rp1.c
@@ -1419,7 +1419,7 @@ static struct rp1_clk_desc pll_video_sec_desc = REGISTER_PLL_DIV(
static const struct clk_parent_data clk_eth_tsu_parents[] = {
{ .index = 0 },
- { .hw = &pll_video_sec_desc.hw },
+ { .hw = &pll_video_sec_desc.div.hw },
{ .index = -1 },
{ .index = -1 },
{ .index = -1 },
@@ -1450,7 +1450,7 @@ static struct rp1_clk_desc clk_eth_tsu_desc = REGISTER_CLK(
static const struct clk_parent_data clk_eth_parents[] = {
{ .hw = &pll_sys_sec_desc.div.hw },
{ .hw = &pll_sys_desc.hw },
- { .hw = &pll_video_sec_desc.hw },
+ { .hw = &pll_video_sec_desc.div.hw },
};
static struct rp1_clk_desc clk_eth_desc = REGISTER_CLK(
@@ -1651,7 +1651,7 @@ static struct rp1_clk_desc clk_uart_desc = REGISTER_CLK(
static const struct clk_parent_data clk_pwm0_parents[] = {
{ .index = -1 },
- { .hw = &pll_video_sec_desc.hw },
+ { .hw = &pll_video_sec_desc.div.hw },
{ .index = 0 },
};
@@ -1677,7 +1677,7 @@ static struct rp1_clk_desc clk_pwm0_desc = REGISTER_CLK(
static const struct clk_parent_data clk_pwm1_parents[] = {
{ .index = -1 },
- { .hw = &pll_video_sec_desc.hw },
+ { .hw = &pll_video_sec_desc.div.hw },
{ .index = 0 },
};
@@ -1705,7 +1705,7 @@ static const struct clk_parent_data clk_audio_in_parents[] = {
{ .index = -1 },
{ .index = -1 },
{ .index = -1 },
- { .hw = &pll_video_sec_desc.hw },
+ { .hw = &pll_video_sec_desc.div.hw },
{ .index = 0 },
};
@@ -1731,7 +1731,7 @@ static struct rp1_clk_desc clk_audio_in_desc = REGISTER_CLK(
static const struct clk_parent_data clk_audio_out_parents[] = {
{ .index = -1 },
{ .index = -1 },
- { .hw = &pll_video_sec_desc.hw },
+ { .hw = &pll_video_sec_desc.div.hw },
{ .index = 0 },
};
@@ -1757,7 +1757,7 @@ static struct rp1_clk_desc clk_audio_out_desc = REGISTER_CLK(
static const struct clk_parent_data clk_i2s_parents[] = {
{ .index = 0 },
{ .hw = &pll_audio_desc.hw },
- { .hw = &pll_audio_sec_desc.hw },
+ { .hw = &pll_audio_sec_desc.div.hw },
};
static struct rp1_clk_desc clk_i2s_desc = REGISTER_CLK(
@@ -1879,7 +1879,7 @@ static struct rp1_clk_desc clk_sdio_alt_src_desc = REGISTER_CLK(
static const struct clk_parent_data clk_dpi_parents[] = {
{ .hw = &pll_sys_desc.hw },
- { .hw = &pll_video_sec_desc.hw },
+ { .hw = &pll_video_sec_desc.div.hw },
{ .hw = &pll_video_desc.hw },
{ .index = -1 },
{ .index = -1 },
@@ -2015,7 +2015,7 @@ static struct rp1_clk_desc clksrc_mipi1_dsi_byteclk_desc = REGISTER_CLK(
static const struct clk_parent_data clk_mipi0_dpi_parents[] = {
{ .hw = &pll_sys_desc.hw },
- { .hw = &pll_video_sec_desc.hw },
+ { .hw = &pll_video_sec_desc.div.hw },
{ .hw = &pll_video_desc.hw },
{ .hw = &clksrc_mipi0_dsi_byteclk_desc.hw },
{ .index = -1 },
@@ -2046,7 +2046,7 @@ static struct rp1_clk_desc clk_mipi0_dpi_desc = REGISTER_CLK(
static const struct clk_parent_data clk_mipi1_dpi_parents[] = {
{ .hw = &pll_sys_desc.hw },
- { .hw = &pll_video_sec_desc.hw },
+ { .hw = &pll_video_sec_desc.div.hw },
{ .hw = &pll_video_desc.hw },
{ .hw = &clksrc_mipi1_dsi_byteclk_desc.hw },
{ .index = -1 },
@@ -2082,7 +2082,7 @@ static const struct clk_parent_data clk_gp2_parents[] = {
{ .index = -1 },
{ .index = -1 },
{ .index = -1 },
- { .hw = &pll_sys_sec_desc.hw },
+ { .hw = &pll_sys_sec_desc.div.hw },
{ .index = -1 },
{ .hw = &pll_video_desc.hw },
{ .hw = &clk_audio_in_desc.hw },
@@ -2163,7 +2163,7 @@ static const struct clk_parent_data clk_gp4_parents[] = {
{ .index = -1 },
{ .index = -1 },
{ .index = -1 },
- { .hw = &pll_video_sec_desc.hw },
+ { .hw = &pll_video_sec_desc.div.hw },
{ .index = -1 },
{ .index = -1 },
{ .index = -1 },
@@ -2197,7 +2197,7 @@ static struct rp1_clk_desc clk_gp4_desc = REGISTER_CLK(
static const struct clk_parent_data clk_vec_parents[] = {
{ .hw = &pll_sys_pri_ph_desc.hw },
- { .hw = &pll_video_sec_desc.hw },
+ { .hw = &pll_video_sec_desc.div.hw },
{ .hw = &pll_video_desc.hw },
{ .index = -1 },
{ .index = -1 },
@@ -2233,7 +2233,7 @@ static const struct clk_parent_data clk_gp5_parents[] = {
{ .index = -1 },
{ .index = -1 },
{ .index = -1 },
- { .hw = &pll_video_sec_desc.hw },
+ { .hw = &pll_video_sec_desc.div.hw },
{ .hw = &clk_eth_tsu_desc.hw },
{ .index = -1 },
{ .hw = &clk_vec_desc.hw },
--
2.56.1.839.g22a8290db9-goog
next prev parent reply other threads:[~2026-11-27 19:27 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 19:25 [PATCH 00/10] clk: Fix OOB writes, UAFs, ERR_PTR dereferences, and rate-calc bugs (batch 2) Lee Jones
2026-11-27 19:25 ` [PATCH 01/10] clk: ti: fapll: Fix output clock array allocation and bounds check Lee Jones
2026-11-27 19:36 ` sashiko-bot
2026-11-27 19:25 ` [PATCH 02/10] clk: tegra: bpmp: Drop manual clock unregister on provider failure Lee Jones
2026-11-27 19:36 ` sashiko-bot
2026-11-27 19:25 ` [PATCH 03/10] clk: starfive: jh7110-sys: Use devres for PLL0 clock and notifier Lee Jones
2026-11-27 19:25 ` [PATCH 04/10] clk: starfive: jh7110: Duplicate top clock bulk arrays per device Lee Jones
2026-11-27 19:25 ` [PATCH 05/10] clk: rockchip: cpu: Allocate rate_table before registering notifier Lee Jones
2026-11-27 19:33 ` sashiko-bot
2026-11-27 19:25 ` [PATCH 06/10] clk: tegra: bpmp: Skip ERR_PTR entries in tegra_bpmp_clk_of_xlate() Lee Jones
2026-11-27 19:25 ` [PATCH 07/10] clk: rp1: Propagate determine_rate() return value for PLL dividers Lee Jones
2026-11-27 19:25 ` Lee Jones [this message]
2026-11-27 19:25 ` [PATCH 09/10] clk: keystone: sci-clk: Check allocation failure before copying clock array Lee Jones
2026-11-27 19:25 ` [PATCH 10/10] clk: versatile: icst: Check kasprintf() and put parent node on error Lee Jones
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=20261127192620.3443537-9-lee@kernel.org \
--to=lee@kernel.org \
--cc=andrea.porta@suse.com \
--cc=bmasney+clk@redhat.com \
--cc=florian.fainelli@broadcom.com \
--cc=jbrunet+clk@baylibre.com \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=naush@raspberrypi.com \
--cc=sboyd@kernel.org \
--cc=stable@vger.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