]> Gentwo Git Trees - linux/.git/commit
clk: thead: th1520-ap: describe gate clocks with clk_gate
authorIcenowy Zheng <uwu@icenowy.me>
Sat, 16 Aug 2025 08:44:44 +0000 (16:44 +0800)
committerDrew Fustini <fustini@kernel.org>
Mon, 18 Aug 2025 21:54:38 +0000 (14:54 -0700)
commitaaa75cbd5d4f63e4edf8b74118d367361dcf92f7
tree6adfbb0d68f8dfbd85ed75ad8a222f8b4a9e021e
parent8f5ae30d69d7543eee0d70083daf4de8fe15d585
clk: thead: th1520-ap: describe gate clocks with clk_gate

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 in 54edba916e29
("clk: thead: th1520-ap: Describe mux clocks with clk_mux").

Fixes: ae81b69fd2b1 ("clk: thead: Add support for T-Head TH1520 AP_SUBSYS clocks")
Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
Reviewed-by: Drew Fustini <fustini@kernel.org>
Signed-off-by: Drew Fustini <fustini@kernel.org>
drivers/clk/thead/clk-th1520-ap.c