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)
committerAbel Vesa <abel.vesa@linaro.org>
Fri, 21 Jun 2024 06:35:20 +0000 (09:35 +0300)
commit8f32e9dd0916eb3fd4bcf550ed1d04542a65cb9e
tree3b6e7bfb04278497a652b9519e704ad65f80ca59
parente52fd71333b4ed78fd5bb43094bdc46476614d25
clk: imx: composite-8m: Enable gate clk with mcore_booted

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>
drivers/clk/imx/clk-composite-8m.c