Re: [PATCH v2] clk: davinci: da8xx-cfgchip: Initialize clk_init_data before use
From: Stephen Boyd
Date: Thu Jul 18 2024 - 16:33:14 EST
Quoting Bastien Curutchet (2024-07-18 04:55:34)
> The flag attribute of the struct clk_init_data isn't initialized before
> the devm_clk_hw_register() call. This can lead to unexpected behavior
> during registration.
>
> Initialize the entire clk_init_data to zero at declaration.
>
> Cc: stable@xxxxxxxxxxxxxxx
> Fixes: 58e1e2d2cd89 ("clk: davinci: cfgchip: Add TI DA8XX USB PHY clocks")
> Signed-off-by: Bastien Curutchet <bastien.curutchet@xxxxxxxxxxx>
> Reviewed-by: David Lechner <david@xxxxxxxxxxxxxx>
> ---
Applied to clk-next