]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: meson: meson8b: make the CCF use the glitch-free mali mux
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Thu, 26 Dec 2019 19:12:23 +0000 (20:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Feb 2020 07:36:26 +0000 (08:36 +0100)
commite715aa99c5021d07af2d07729b54189fb4ecd4a7
tree4b5b1a0127009ba47be167f0eec90bf6f59f0ad7
parent271b18405eb021f922ab2d9d75cfd2632ef165db
clk: meson: meson8b: make the CCF use the glitch-free mali mux

[ Upstream commit 8daeaea99caabe24a0929fac17977ebfb882fa86 ]

The "mali_0" or "mali_1" clock trees should not be updated while the
clock is running. Enforce this by setting CLK_SET_RATE_GATE on the
"mali_0" and "mali_1" gates. This makes the CCF switch to the "mali_1"
tree when "mali_0" is currently active and vice versa, which is exactly
what the vendor driver does when updating the frequency of the mali
clock.

This fixes a potential hang when changing the GPU frequency at runtime.

Fixes: 74e1f2521f16ff ("clk: meson: meson8b: add the GPU clock tree")
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/meson/meson8b.c