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

From: Drew Fustini
Date: Fri Aug 15 2025 - 19:45:47 EST


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@xxxxxxxxxxx/
>
> Signed-off-by: Icenowy Zheng <uwu@xxxxxxxxxx>
> ---
> drivers/clk/thead/clk-th1520-ap.c | 382 +++++++++++++++---------------
> 1 file changed, 185 insertions(+), 197 deletions(-)

Reviewed-by: Drew Fustini <fustini@xxxxxxxxxx>