drm: vblank: Fix vblank timestamp update
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 29 Jun 2017 12:37:20 +0000 (15:37 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 29 Jun 2017 12:40:47 +0000 (14:40 +0200)
commit138b87fa43b629ed14429e2e056fe4d5ef132921
treead5a7ee086bd04bb0ced49534702873cd7ebae61
parentc048c984de38d906bb0df56ec2ae90eafc123d0a
drm: vblank: Fix vblank timestamp update

Commit 3fcdcb270936 ("drm/vblank: Switch to bool in_vblank_irq in
get_vblank_timestamp") inverted a condition by mistake that resulted in
vblank timestamps always being 0 on hardware without a vblank counter.
Fix it.

Fixes: 3fcdcb270936 ("drm/vblank: Switch to bool in_vblank_irq in get_vblank_timestamp")
Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20170629123720.27173-1-laurent.pinchart+renesas@ideasonboard.com
drivers/gpu/drm/drm_vblank.c