]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Nov 2025 20:37:36 +0000 (15:37 -0500)
commitbdec5e01fc2f3114d1fb1daeb1000911d783c4ae
treeeff145c321ad7a0a762359b3731fee62441509e9
parent7add29381ef128baf4b3db42a673808559de3d26
clk: thead: th1520-ap: set all AXI clocks to CLK_IS_CRITICAL

[ Upstream commit c567bc5fc68c4388c00e11fc65fd14fe86b52070 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/thead/clk-th1520-ap.c