Skip to content

Commit 3bace4f

Browse files
committed
drm/st7586: Remove sending of vblank event
The atomic helpers automatically send out fake VBLANK events if no vblanking has been initialized. Remove the sending code from the driver. v4: * separate commit from core vblank changes 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-12-tzimmermann@suse.de
1 parent f3fe2ef commit 3bace4f

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

‎drivers/gpu/drm/tiny/st7586.c‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#include <drm/drm_gem_framebuffer_helper.h>
2424
#include <drm/drm_mipi_dbi.h>
2525
#include <drm/drm_rect.h>
26-
#include <drm/drm_vblank.h>
2726

2827
/* controller-specific commands */
2928
#define ST7586_DISP_MODE_GRAY 0x38
@@ -159,18 +158,10 @@ static void st7586_pipe_update(struct drm_simple_display_pipe *pipe,
159158
struct drm_plane_state *old_state)
160159
{
161160
struct drm_plane_state *state = pipe->plane.state;
162-
struct drm_crtc *crtc = &pipe->crtc;
163161
struct drm_rect rect;
164162

165163
if (drm_atomic_helper_damage_merged(old_state, state, &rect))
166164
st7586_fb_dirty(state->fb, &rect);
167-
168-
if (crtc->state->event) {
169-
spin_lock_irq(&crtc->dev->event_lock);
170-
drm_crtc_send_vblank_event(crtc, crtc->state->event);
171-
spin_unlock_irq(&crtc->dev->event_lock);
172-
crtc->state->event = NULL;
173-
}
174165
}
175166

176167
static void st7586_pipe_enable(struct drm_simple_display_pipe *pipe,

0 commit comments

Comments
 (0)