]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: imx: composite-93: keep root clock on when mcore enabled
authorJacky Bai <ping.bai@nxp.com>
Fri, 7 Jun 2024 13:33:34 +0000 (21:33 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:29:25 +0000 (16:29 +0200)
commitc1eb71fd985d01b0f1a285f31747183f70ba16f4
treee504baabeb0ff4b49a9eeae4fc250aee9b4c56b9
parent73034d130b0a865abc65029b2ea9f99af1aa00a8
clk: imx: composite-93: keep root clock on when mcore enabled

[ Upstream commit d342df11726bfac9c3a9d2037afa508ac0e9e44e ]

Previously we assumed that the root clock slice is enabled
by default when kernel boot up. But the bootloader may disable
the clocks before jump into kernel. The gate ops should be registered
rather than NULL to make sure the disabled clock can be enabled
when kernel boot up.  Refine the code to skip disable the clock
if mcore booted.

Fixes: a740d7350ff7 ("clk: imx: imx93: add mcore_booted module paratemter")
Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Tested-by: Chancel Liu <chancel.liu@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-3-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-93.c