[PATCH v5 29/31] clk: at91: at91sam9g45: switch to parent_data and parent_hw

Claudiu Beznea claudiu.beznea at tuxon.dev
Sat Jan 31 06:19:45 PST 2026


Same here as in the previous patch.

On 1/16/26 22:07, ryan.wanner at microchip.com wrote:
> From: Claudiu Beznea <claudiu.beznea at tuxon.dev>
> 
> Switch AT91SAM9G45 clocks to use parent_hw and parent_data. Having
> parent_data instead of parent names improves to clock registration
> speed and re-parenting.
> 
> Signed-off-by: Claudiu Beznea <claudiu.beznea at tuxon.dev>
> Signed-off-by: Ryan Wanner <Ryan.Wanner at microchip.com>
> ---
[ ...]

>   static void __init at91sam9g45_pmc_setup(struct device_node *np)
>   {
>   	const char *slck_name, *mainxtal_name;
> +	struct clk_parent_data parent_data[5];

Please mention in the patch description that you've also changed this while at 
it along with a reason.

Everything else LGTM.


>   	struct pmc_data *at91sam9g45_pmc;
> -	const char *parent_names[6];
> +	struct clk_hw *usbck_hw, *hw;
>   	struct regmap *regmap;
> -	struct clk_hw *hw;
>   	int i;
>   	bool bypass;
>   



More information about the linux-arm-kernel mailing list