]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - rpmsg/rpmsg.git/commit
drm/tidss: add WARN if we overwrite tcrtc->event
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 18 Nov 2019 09:16:27 +0000 (11:16 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 27 Nov 2019 12:54:18 +0000 (14:54 +0200)
commit85297c6459d122889f0810dbe30e5cddeba34e4e
treeeb6c658af441995497ecbdc0de2738a0e9506b86
parent9e51c9244519aa6f411d71f3611317cda6119ab8
drm/tidss: add WARN if we overwrite tcrtc->event

we move crtc->state->event to tcrtc->event in tidss_crtc_atomic_flush,
and vblank handler will consume tcrtc->event and set it back to NULL.
When tidss_crtc_atomic_flush is called, tcrtc->event should always be
NULL, so add a WARN_ON to catch race conditions.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Jyri Sarha <jsarha@ti.com>
drivers/gpu/drm/tidss/tidss_crtc.c