clk: imx8m: check mcore_booted before register clk
authorPeng Fan <peng.fan@nxp.com>
Mon, 28 Feb 2022 12:41:12 +0000 (20:41 +0800)
committerAbel Vesa <abel.vesa@nxp.com>
Tue, 12 Apr 2022 10:47:03 +0000 (13:47 +0300)
commitbb7e897b002aaf698e4ede6332bff38e77557a4b
treeffcfd73e22194da3eee9065a07e7108ea91d95e9
parent19565ea12d61c69ef2be97a97b426ba5c55572ff
clk: imx8m: check mcore_booted before register clk

If mcore_booted is true, ignore the clk root gate registration and
this will simplify AMP clock management and avoid system hang unexpectly
especially Linux shutdown clk used by mcore.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Abel Vesa <abel.vesa@nxp.com>
Link: https://lore.kernel.org/r/20220228124112.3974242-2-peng.fan@oss.nxp.com
[abelvesa@kernel.org: Removed if-case for when mcore_booted is true]
Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
drivers/clk/imx/clk-composite-8m.c