]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/ast: Don't set struct drm_crtc_state.no_vblank explicitly
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 29 Jan 2020 12:05:19 +0000 (13:05 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 30 Jan 2020 08:00:33 +0000 (09:00 +0100)
As ast does not initialize vblanking, atomic helpers initialize the
value of struct drm_crtc_state.no_vblank to be true. No need to set
it from within the driver.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20200129120531.6891-4-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_mode.c

index 34608f0499eb41077d9b60b1d133a89b72fd597c..7810a84e7e9ead9382848a2273bf32c1ad9c42b7 100644 (file)
@@ -833,8 +833,6 @@ static void ast_crtc_helper_atomic_flush(struct drm_crtc *crtc,
        struct ast_vbios_mode_info *vbios_mode_info;
        struct drm_display_mode *adjusted_mode;
 
-       crtc->state->no_vblank = true;
-
        ast_state = to_ast_crtc_state(crtc->state);
 
        format = ast_state->format;