]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: mediatek: mt7981-topckgen: flag SGM_REG_SEL as critical
authorDaniel Golle <daniel@makrotopia.org>
Sun, 18 Feb 2024 03:11:15 +0000 (03:11 +0000)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:50 +0000 (18:19 -0400)
commit6ff01b314149d1cf59caebc29384f0beed21cba4
tree66cd3e7fb79bb04dd966ecfe2374c80a208aac4e
parent56b8f242ebaf8e44def4a66067135417431b42f2
clk: mediatek: mt7981-topckgen: flag SGM_REG_SEL as critical

[ Upstream commit aa690050c00a251ab69e3c5204d582833d0b958c ]

Without the SGM_REG_SEL clock enabled the cpu freezes if trying to
access registers used by MT7981 clock drivers itself.
Mark SGM_REG_SEL as critical to make sure it is always enabled to
prevent freezes on boot even if the Ethernet driver which prepares
and enables the clock is not loaded or probed at a later point.

Fixes: 813c3b53b55b ("clk: mediatek: add MT7981 clock support")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Link: https://lore.kernel.org/r/fc157139e6b7f8dfb6430ac7191ba754027705e8.1708221995.git.daniel@makrotopia.org
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/mediatek/clk-mt7981-topckgen.c