drm/vc4: Fix atomic_async_check to call the right mode_set function
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Wed, 17 Jan 2024 17:00:35 +0000 (17:00 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:29 +0000 (11:35 +0000)
commitfeb34b1a7490e6153fad5b150610b04b691658b2
tree8d4749c90280c5e1de9458ce56f6932c5d008887
parent4d1564a0e95afd1ac7bfa752d5f61507deea07c9
drm/vc4: Fix atomic_async_check to call the right mode_set function

vc4_plane_atomic_async_check was always calling vc4_plane_mode_set
to validate and generate the dlist for the check. If async_check
decided it had to fall back to a sync commit, then this GEN4/5
dlist could get used on GEN6.

Call either vc4_plane_mode_set or vc6_plane_mode_set as appropriate.

Fixes: 1ab1fbbb7e76 ("drm/vc4: hvs: Support BCM2712 HVS")
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/gpu/drm/vc4/vc4_plane.c