drm/vc4: crtc: Only access the PixelValve registers if we have to
authorMaxime Ripard <maxime@cerno.tech>
Thu, 11 Jun 2020 13:36:50 +0000 (15:36 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Tue, 7 Jul 2020 08:51:21 +0000 (10:51 +0200)
commit811a850cbddef47623c5f6197154a05bb4efc7c9
treec730e0f3955fb26dd8fd47146188fbf788396db9
parent5a20ff8bf3d455855d445594152cc6a7760a3793
drm/vc4: crtc: Only access the PixelValve registers if we have to

The CRTC hooks are called both for the TXP and the pixelvalve, yet some
will read / write the registers as if the device was a pixelvalve, which
won't really work.

Let's make sure we only access those registers if we are running on a
PixelValve.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/b55e31869304c748920c261eba87b3275dbeb297.1591882579.git-series.maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_crtc.c