Skip to content

Commit a569864

Browse files
6by9popcornmix
authored andcommitted
drm/vc4: Fixup plane init within firmware-kms
"drm/vc4: plane: Move additional planes creation to driver" moved overlay and cursor plane creation to a global function thata was unconditionally run, when it is not wanted in firmware KMS mode. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
1 parent 8beaca1 commit a569864

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎drivers/gpu/drm/vc4/vc4_drv.c‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,11 @@ static int vc4_drm_bind(struct device *dev)
291291
if (ret)
292292
goto gem_destroy;
293293

294-
ret = vc4_plane_create_additional_planes(drm);
295-
if (ret)
296-
goto unbind_all;
294+
if (!vc4->firmware_kms) {
295+
ret = vc4_plane_create_additional_planes(drm);
296+
if (ret)
297+
goto unbind_all;
298+
}
297299

298300
drm_fb_helper_remove_conflicting_framebuffers(NULL, "vc4drmfb", false);
299301

0 commit comments

Comments
 (0)