drm/imx: always call wait_for_flip_done in commit_tail
authorLucas Stach <l.stach@pengutronix.de>
Thu, 30 Nov 2017 13:31:46 +0000 (14:31 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 30 Nov 2017 14:47:40 +0000 (15:47 +0100)
commita152992062aa3803eeabfda84b5b844721ddf6ed
treebd3ca8c327ed5efefb5b1432b17cc3204b141b82
parent4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323
drm/imx: always call wait_for_flip_done in commit_tail

drm_atomic_helper_wait_for_vblanks will go away in the future.

The new drm_atomic_helper_setup_commit in 4.15 expects that blocking commits
have completed flipping before the commit_tail returns. This must be ensured
by calling wait_for_vblanks or wait_for_flip_done, where flip_done might do
a less agressive wait, which is fine for imx-drm.

Fixes: 080de2e5be2d (drm/atomic: Check for busy planes/connectors before
                     setting the commit)
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/drm/imx/imx-drm-core.c