]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: hdmi: Prevent clock unbalance
authorMaxime Ripard <maxime@cerno.tech>
Fri, 7 May 2021 15:05:09 +0000 (17:05 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Mon, 24 May 2021 12:42:22 +0000 (14:42 +0200)
commit1115e121ea41c0fe1b96050ef98bfda790b224e5
treead29645d8a019c747bacb1564a82cbde874813bf
parent0941de589a7bb7d21e56136ff21e6e04e2e13eed
drm/vc4: hdmi: Prevent clock unbalance

Since we fixed the hooks to disable the encoder at boot, we now have an
unbalanced clk_disable call at boot since we never enabled them in the
first place.

Let's mimic the state of the hardware and enable the clocks at boot if
the controller is enabled to get the use-count right.

Cc: <stable@vger.kernel.org> # v5.10+
Fixes: 323366423605 ("drm/vc4: hdmi: Implement finer-grained hooks")
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210507150515.257424-7-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_hdmi.c