]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: imx: Remove CLK_SET_PARENT_GATE for DRAM mux for i.MX7D
authorPeng Fan <peng.fan@nxp.com>
Fri, 7 Jun 2024 13:33:39 +0000 (21:33 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:52 +0000 (15:11 +0200)
commitd18dc8e14b9c794f58dae1577ccb2ab84a4a1b11
treee40db29d2bb204d91b53cc2b7771b6c3a1124822
parent64f2ca5ce97111a364a18c31772eb46c79e8b772
clk: imx: Remove CLK_SET_PARENT_GATE for DRAM mux for i.MX7D

[ Upstream commit a54c441b46a0745683c2eef5a359d22856d27323 ]

For i.MX7D DRAM related mux clock, the clock source change should ONLY
be done done in low level asm code without accessing DRAM, and then
calling clk API to sync the HW clock status with clk tree, it should never
touch real clock source switch via clk API, so CLK_SET_PARENT_GATE flag
should NOT be added, otherwise, DRAM's clock parent will be disabled when
DRAM is active, and system will hang.

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-8-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-imx7d.c