]> 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>
Thu, 17 Oct 2024 13:10:59 +0000 (15:10 +0200)
commit30efd759091250026b73e596a7d1516009def233
treeaf5e90c508d1316e926196e0c351300f5f33504d
parentf1046dd074568325a3e9117f162462e16bf1020c
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