drm/vc4: hdmi: Warn if we access the controller while disabled
authorMaxime Ripard <maxime@cerno.tech>
Thu, 19 Aug 2021 13:59:31 +0000 (15:59 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Mon, 25 Oct 2021 13:33:41 +0000 (15:33 +0200)
commit14e193b95604182a338e3721385e3d8a56d3c5a8
tree6a76f2297fd3b8f915f33a9c133f7f21bdb2a68d
parent20b0dfa86bef0e80b41b0e5ac38b92f23b6f27f9
drm/vc4: hdmi: Warn if we access the controller while disabled

We've had many silent hangs where the kernel would look like it just
stalled due to the access to one of the HDMI registers while the
controller was disabled.

Add a warning if we're about to do that so that it's at least not silent
anymore.

Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20210819135931.895976-7-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_hdmi_regs.h