[PATCH 1/2] clk: thead: th1520-ap: describe gate clocks with clk_gate

Drew Fustini fustini at kernel.org
Fri Aug 15 16:45:35 PDT 2025


On Thu, Aug 14, 2025 at 01:11:35AM +0800, Icenowy Zheng wrote:
> Similar to previous situation of mux clocks, the gate clocks of
> clk-th1520-ap drivers are also using a helper that creates a temporary
> struct clk_hw and abandons the struct clk_hw in struct ccu_common, which
> prevents clock gates to be clock parents.
> 
> Do the similar refactor of dropping struct ccu_common and directly use
> struct clk_gate here.
> 
> This patch mimics the refactor done on struct ccu_mux at [1].
> 
> [1] https://lore.kernel.org/all/20250722080535.60027-2-ziyao@disroot.org/
> 
> Signed-off-by: Icenowy Zheng <uwu at icenowy.me>
> ---
>  drivers/clk/thead/clk-th1520-ap.c | 382 +++++++++++++++---------------
>  1 file changed, 185 insertions(+), 197 deletions(-)

Reviewed-by: Drew Fustini <fustini at kernel.org>



More information about the linux-riscv mailing list