]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/vmwgfx: Use __drm_atomic_helper_crtc_reset
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 12 Jun 2020 20:49:40 +0000 (22:49 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 2 Jul 2020 18:25:52 +0000 (20:25 +0200)
Now also comes with the added benefit of doing a drm_crtc_vblank_off(),
which means vblank state isn't ill-defined and fail-y at driver load
before the first modeset on each crtc.

v2: Compile fix. Oops.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Cc: VMware Graphics <linux-graphics-maintainer@vmware.com>
Cc: Roland Scheidegger <sroland@vmware.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200612204940.2134653-1-daniel.vetter@ffwll.ch
Link: https://patchwork.freedesktop.org/patch/msgid/20200612160056.2082681-7-daniel.vetter@ffwll.ch
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c

index 3c97654b5a43512daedc8d67ab511775cc91dc2b..bbce45d142aa274d297edec36c8643c9129a353e 100644 (file)
@@ -629,8 +629,7 @@ void vmw_du_crtc_reset(struct drm_crtc *crtc)
                return;
        }
 
-       crtc->state = &vcs->base;
-       crtc->state->crtc = crtc;
+       __drm_atomic_helper_crtc_reset(crtc, &vcs->base);
 }