]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit3f10f49cd9f8ab6471639d4ca2c6db9451121779
treecf11312026ee52c5254469a2086a4b302d625de9
parentc39da7d0b40265eb4d0e9e5a1ea460ebc3f3185e
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: e2edf59dec0b ("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