drm/vc4: hvs: Ignore atomic_flush if we're disabled
authorMaxime Ripard <maxime@cerno.tech>
Wed, 7 Dec 2022 11:53:19 +0000 (12:53 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Mon, 9 Jan 2023 14:21:31 +0000 (15:21 +0100)
commit92c17d16476c71329a2978f80f23ce1009c69c55
tree7985ba3e0dfc0c738d1c53900e2340dbe835279d
parentf92534ea5cb1e5485218c0ed7cc5d588e28e668e
drm/vc4: hvs: Ignore atomic_flush if we're disabled

atomic_flush will be called for each CRTC even if they aren't enabled.

The whole code we have there will thus run without a properly affected
channel, which can then result in all sorts of weird behaviour.

Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Link: https://lore.kernel.org/r/20221207-rpi-hvs-crtc-misc-v1-8-1f8e0770798b@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/vc4_hvs.c