]> git.baikalelectronics.ru Git - kernel.git/commit
clk: mediatek: mt8195-infra_ao: Set pwrmcu clocks as critical
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tue, 19 Jul 2022 09:33:16 +0000 (11:33 +0200)
committerStephen Boyd <sboyd@kernel.org>
Thu, 1 Sep 2022 01:15:18 +0000 (18:15 -0700)
commitcc14f3afa78f56d251ceb8a6e33044fdbf5d5f3b
treecf11312026ee52c5254469a2086a4b302d625de9
parentddc497da0633b3a9f0045ca744e408077d3f8549
clk: mediatek: mt8195-infra_ao: Set pwrmcu clocks as critical

The pwrmcu is responsible for power management and idle states in SSPM:
on older SoCs this was managed in Linux drivers like sspm/mcupm/eemgpu
but, at least on MT8195, this functionality was transferred to the ATF
firmware.
For this reason, turning off the pwrmcu related clocks from the kernel
will lead to unability to resume the platform after suspend and other
currently unknown PM related side-effects.

Set the PWRMCU and PWRMCU_BUS_H clocks as critical to prevent the
kernel from turning them off, fixing the aforementioned issue.

Fixes: 055951483930 ("clk: mediatek: Add MT8195 infrastructure clock support")
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220719093316.37253-1-angelogioacchino.delregno@collabora.com
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/mediatek/clk-mt8195-infra_ao.c