Re: [PATCH v2 6/6] clk: imx8mp: inform CCF of maximum frequency of clocks
From: Ahmad Fatoum
Date: Mon Jan 13 2025 - 08:49:16 EST
Hello Stephen,
On 07.01.25 00:42, Stephen Boyd wrote:
> Quoting Ahmad Fatoum (2025-01-06 06:21:47)
>> diff --git a/drivers/clk/imx/clk-imx8mp.c b/drivers/clk/imx/clk-imx8mp.c
>> index 516dbd170c8a356f293621b371b9ef9b9bec90a4..3b06990b73adcb2e4807f91a8983ad35068572a7 100644
>> --- a/drivers/clk/imx/clk-imx8mp.c
>> +++ b/drivers/clk/imx/clk-imx8mp.c
>> @@ -405,6 +406,145 @@ static const char * const imx8mp_clkout_sels[] = {"audio_pll1_out", "audio_pll2_
>> static struct clk_hw **hws;
>> static struct clk_hw_onecell_data *clk_hw_data;
>>
>> +struct imx8mp_clock_constraints {
>> + int clkid;
>
> Is it signed instead of unsigned because the terminal element of the
> array has -1 as a clkid? And because clkid 0 is a valid one?
I did use -1 originally, but then switched to zero as applying
constraints on IMX8MP_CLK_DUMMY doesn't make sense anyway.
> Please remove the comma because nothing can come after this and if
> someone were to add something after they would get a compilation error.
Commas removed and clkid made unsigned in v3.
Thanks,
Ahmad
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |