]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: imx: composite-8m: Enable gate clk with mcore_booted
authorPeng Fan <peng.fan@nxp.com>
Fri, 7 Jun 2024 13:33:33 +0000 (21:33 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:29:25 +0000 (16:29 +0200)
commit73034d130b0a865abc65029b2ea9f99af1aa00a8
tree70478a3a260f20b471750a88ad2ca1fe83364204
parent554c590d229d8c789df4b2eaec487539a1894fd2
clk: imx: composite-8m: Enable gate clk with mcore_booted

[ Upstream commit 8f32e9dd0916eb3fd4bcf550ed1d04542a65cb9e ]

Bootloader might disable some CCM ROOT Slices. So if mcore_booted set with
display CCM ROOT disabled by Bootloader, kernel display BLK CTRL driver
imx8m_blk_ctrl_driver_init may hang the system because the BUS clk is
disabled.

Add back gate ops, but with disable doing nothing, then the CCM ROOT
will be enabled when used.

Fixes: bb7e897b002a ("clk: imx8m: check mcore_booted before register clk")
Reviewed-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
Link: https://lore.kernel.org/r/20240607133347.3291040-2-peng.fan@oss.nxp.com
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/imx/clk-composite-8m.c