]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: hdmi: Set a default HSM rate
authorMaxime Ripard <maxime@cerno.tech>
Wed, 22 Sep 2021 12:54:17 +0000 (14:54 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Mon, 25 Oct 2021 13:33:40 +0000 (15:33 +0200)
commita6aa1e0a9e72d5790af46c6806264a9f8e48ee90
tree1d99096a575969e2302f1c93c0891e98333db1ec
parent5744808e30f6af51c95d0c6e316a43704be057b7
drm/vc4: hdmi: Set a default HSM rate

When the firmware doesn't setup the HSM rate (such as when booting
without an HDMI cable plugged in), its rate is 0 and thus any register
access results in a CPU stall, even though HSM is enabled.

Let's enforce a minimum rate at boot to avoid this issue.

Fixes: 9a21382c7279 ("drm/vc4: Add runtime PM support to the HDMI encoder driver")
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Nicolas Saenz Julienne <nsaenz@kernel.org>
Tested-by: Nicolas Saenz Julienne <nsaenz@kernel.org>
Tested-by: Michael Stapelberg <michael@stapelberg.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20210922125419.4125779-4-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_hdmi.c