]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: imx: imx8qxp: Parent should be initialized earlier than the clock
authorPeng Fan <peng.fan@nxp.com>
Fri, 7 Jun 2024 13:33:46 +0000 (21:33 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:33:02 +0000 (16:33 +0200)
commit6e31ccbb2651ec6a76827fedbe66fa16ee57baab
tree600f1b4576cac75bccbc32c70ad6eecfe7db8997
parentd39e7535456b394771468ed100f0b3a81e5469a9
clk: imx: imx8qxp: Parent should be initialized earlier than the clock

[ Upstream commit 766c386c16c9899461b83573a06380d364c6e261 ]

The initialization order of SCU clocks affects the sequence of SCU clock
resume. If there are no other effects, the earlier the initialization,
the earlier the resume. During SCU clock resume, the clock rate is
restored. As SCFW guidelines, configure the parent clock rate before
configuring the child rate.

Fixes: babfaa9556d7 ("clk: imx: scu: add more scu clocks")
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-15-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-imx8qxp.c