All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] clk: qcom: a53-pll: convert to use parent_data rather than parent_names
@ 2022-06-20  1:06 Dmitry Baryshkov
  2022-07-19  2:39 ` Bjorn Andersson
  0 siblings, 1 reply; 2+ messages in thread
From: Dmitry Baryshkov @ 2022-06-20  1:06 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Stephen Boyd, Michael Turquette, Taniya Das
  Cc: linux-arm-msm, linux-clk

Change a53-pll driver to use clk_parent_data rather than always looking
up the xo clock in the system clock list.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
 drivers/clk/qcom/a53-pll.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/clk/qcom/a53-pll.c b/drivers/clk/qcom/a53-pll.c
index 329d2c5356d8..f9c5e296dba2 100644
--- a/drivers/clk/qcom/a53-pll.c
+++ b/drivers/clk/qcom/a53-pll.c
@@ -127,7 +127,9 @@ static int qcom_a53pll_probe(struct platform_device *pdev)
 	if (!init.name)
 		return -ENOMEM;
 
-	init.parent_names = (const char *[]){ "xo" };
+	init.parent_data = &(const struct clk_parent_data){
+		.fw_name = "xo", .name = "xo_board",
+	};
 	init.num_parents = 1;
 	init.ops = &clk_pll_sr2_ops;
 	pll->clkr.hw.init = &init;
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] clk: qcom: a53-pll: convert to use parent_data rather than parent_names
  2022-06-20  1:06 [PATCH] clk: qcom: a53-pll: convert to use parent_data rather than parent_names Dmitry Baryshkov
@ 2022-07-19  2:39 ` Bjorn Andersson
  0 siblings, 0 replies; 2+ messages in thread
From: Bjorn Andersson @ 2022-07-19  2:39 UTC (permalink / raw)
  To: Dmitry Baryshkov
  Cc: Andy Gross, Stephen Boyd, Michael Turquette, Taniya Das,
	linux-arm-msm, linux-clk

On Sun 19 Jun 20:06 CDT 2022, Dmitry Baryshkov wrote:

> Change a53-pll driver to use clk_parent_data rather than always looking
> up the xo clock in the system clock list.
> 
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> ---
>  drivers/clk/qcom/a53-pll.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/clk/qcom/a53-pll.c b/drivers/clk/qcom/a53-pll.c
> index 329d2c5356d8..f9c5e296dba2 100644
> --- a/drivers/clk/qcom/a53-pll.c
> +++ b/drivers/clk/qcom/a53-pll.c
> @@ -127,7 +127,9 @@ static int qcom_a53pll_probe(struct platform_device *pdev)
>  	if (!init.name)
>  		return -ENOMEM;
>  
> -	init.parent_names = (const char *[]){ "xo" };
> +	init.parent_data = &(const struct clk_parent_data){
> +		.fw_name = "xo", .name = "xo_board",

This used to look up the globally named clock "xo", now it picked up
"xo_board". If this is intentional, could you please update the commit
message to cover this part?

Thanks,
Bjorn

> +	};
>  	init.num_parents = 1;
>  	init.ops = &clk_pll_sr2_ops;
>  	pll->clkr.hw.init = &init;
> -- 
> 2.35.1
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-19  2:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-20  1:06 [PATCH] clk: qcom: a53-pll: convert to use parent_data rather than parent_names Dmitry Baryshkov
2022-07-19  2:39 ` Bjorn Andersson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.