]> git.baikalelectronics.ru Git - kernel.git/commit
drm/omap: Use old_fb to synchronize between successive page flips
authorArchit Taneja <archit@ti.com>
Fri, 11 Apr 2014 07:23:34 +0000 (12:53 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 15 Apr 2014 10:35:28 +0000 (13:35 +0300)
commitf9384b78c7d7c2847fefed43b7218bf9574805a2
tree46b7509e1966d998b1898c52ee8f921801140e40
parentd76e81fef378a486980a9f1e43504920f591bd35
drm/omap: Use old_fb to synchronize between successive page flips

omap_crtc->old_fb is used to check whether the previous page flip has completed
or not. However, it's never initialized to anything, so it's always NULL. This
results in the check to always succeed, and the page_flip to proceed.

Initialize old_fb to the fb that we intend to flip to through page_flip, and
therefore prevent a future page flip to proceed if the last one didn't
complete.

Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/omap_crtc.c