From: Claudiu Beznea <claudiu.beznea@tuxon.dev>
To: Ryan.Wanner@microchip.com, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org, nicolas.ferre@microchip.com,
alexandre.belloni@bootlin.com, mturquette@baylibre.com
Cc: sboyd@kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org
Subject: Re: [PATCH v2 2/4] clk: at91: sama7d65: Add missing clk_hw to parent_data
Date: Sat, 26 Apr 2025 16:35:50 +0300 [thread overview]
Message-ID: <47b54406-42d8-41cd-a561-9073db09666e@tuxon.dev> (raw)
In-Reply-To: <d634ae4f72bca022e205b03c01415e90fda0bc01.1742916867.git.Ryan.Wanner@microchip.com>
Hi, Ryan,
On 25.03.2025 17:55, Ryan.Wanner@microchip.com wrote:
> From: Ryan Wanner <Ryan.Wanner@microchip.com>
>
> The main_xtal clk_hw struct is not passed into parent_data.hw causing an
> issue with main_osc parent.
Can you please describe the issue?
> Passing the main_xtal struct into the
> parent_data struct will ensure the correct parent structure.
>
> Signed-off-by: Ryan Wanner <Ryan.Wanner@microchip.com>
> ---
> drivers/clk/at91/sama7d65.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/clk/at91/sama7d65.c b/drivers/clk/at91/sama7d65.c
> index a5d40df8b2f2..08306261c9c7 100644
> --- a/drivers/clk/at91/sama7d65.c
> +++ b/drivers/clk/at91/sama7d65.c
> @@ -1138,6 +1138,7 @@ static void __init sama7d65_pmc_setup(struct device_node *np)
>
> parent_data.name = main_xtal_name;
> parent_data.fw_name = main_xtal_name;
> + parent_data.hw = main_xtal_hw;
I think, from time to time, you can still hit some random failure as the
parent_data.index is still not initialized. I think the problem may be
solved by doing something like:
- static struct clk_parent_data parent_data;
+ static struct clk_parent_data parent_data = {0};
Can you please check with this?
Thank you,
Claudiu
> main_osc_hw = at91_clk_register_main_osc(regmap, "main_osc", NULL,
> &parent_data, bypass);
> if (IS_ERR(main_osc_hw))
next prev parent reply other threads:[~2025-04-26 13:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-25 15:55 [PATCH v2 0/4] AT91 SAMA7 SoC Clock Adjustments Ryan.Wanner
2025-03-25 15:55 ` [PATCH v2 1/4] clk: at91: sckc: Fix parent_data struct for slow osc Ryan.Wanner
2025-04-26 13:36 ` Claudiu Beznea
2025-03-25 15:55 ` [PATCH v2 2/4] clk: at91: sama7d65: Add missing clk_hw to parent_data Ryan.Wanner
2025-04-26 13:35 ` Claudiu Beznea [this message]
2025-05-01 15:01 ` Ryan Wanner
2025-03-25 15:55 ` [PATCH v2 3/4] clk: at91: sama7g5: " Ryan.Wanner
2025-03-25 15:55 ` [PATCH v2 4/4] ARM: dts: microchip: sama7g5: Adjust clock xtal phandle Ryan.Wanner
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=47b54406-42d8-41cd-a561-9073db09666e@tuxon.dev \
--to=claudiu.beznea@tuxon.dev \
--cc=Ryan.Wanner@microchip.com \
--cc=alexandre.belloni@bootlin.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=nicolas.ferre@microchip.com \
--cc=robh@kernel.org \
--cc=sboyd@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;
as well as URLs for NNTP newsgroup(s).