]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
clk: thead: th1520-ap: set all AXI clocks to CLK_IS_CRITICAL
authorIcenowy Zheng <uwu@icenowy.me>
Sat, 16 Aug 2025 09:11:13 +0000 (17:11 +0800)
committerDrew Fustini <fustini@kernel.org>
Mon, 18 Aug 2025 21:58:23 +0000 (14:58 -0700)
commitc567bc5fc68c4388c00e11fc65fd14fe86b52070
treeb2ead314c93565bea7080b858ee24f46833bbaec
parent8fede7ff692cc06791269cd7c68b2bd2f62af159
clk: thead: th1520-ap: set all AXI clocks to CLK_IS_CRITICAL

The AXI crossbar of TH1520 has no proper timeout handling, which means
gating AXI clocks can easily lead to bus timeout and thus system hang.

Set all AXI clock gates to CLK_IS_CRITICAL. All these clock gates are
ungated by default on system reset.

In addition, convert all current CLK_IGNORE_UNUSED usage to
CLK_IS_CRITICAL to prevent unwanted clock gating.

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