]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: hdmi: Make sure the controller is powered in detect
authorMaxime Ripard <maxime@cerno.tech>
Tue, 25 May 2021 09:10:59 +0000 (11:10 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 16 Jun 2021 12:24:23 +0000 (14:24 +0200)
commitde7105a4047d18dd69cc2f5ea3f60f884cb798d7
tree46fdbfba890f9f16aa6d3f4ef56c2dad41227963
parent594db0d6bbe428e7a981b7b8fde4d3f75449a08a
drm/vc4: hdmi: Make sure the controller is powered in detect

If the HPD GPIO is not available and drm_probe_ddc fails, we end up
reading the HDMI_HOTPLUG register, but the controller might be powered
off resulting in a CPU hang. Make sure we have the power domain and the
HSM clock powered during the detect cycle to prevent the hang from
happening.

Fixes: 4e978abc8d23 ("drm/vc4: Add runtime PM support to the HDMI encoder driver")
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210525091059.234116-4-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_hdmi.c