[PATCH v1] clk: use private clk struct in CLK_CCF's enable/disable functions

Sean Anderson seanga2 at gmail.com
Wed Nov 1 22:03:07 CET 2023


On Wed, 6 Sep 2023 01:16:49 +0300, Maksim Kiselev wrote:
> In clk_enable()/clk_disable() functions, when CCF is activated,
> we must pass a private clk struct to enable()/disable() ops functions.
> Otherwise, the use of a container_of() construction within these ops
> should be banned. Because passing a non-private clk struct to
> container_of() results in an out of range error.
> 
> At the moment, clk-mux, clk-fixed-factor, clk-gate and possibly other
> clocks use container_of() in their enable()/disable() functions.
> Therefore, for these functions to work correclty, private clk struct
> must be passed.
> 
> [...]

Applied, thanks!

[1/1] clk: use private clk struct in CLK_CCF's enable/disable functions
      commit: 0755db477fa7478e2659568bb7da038a9eaabb8d

Best regards,
-- 
Sean Anderson <seanga2 at gmail.com>


More information about the U-Boot mailing list