[PATCH] drm/vc4: Return -EBUSY if there's already a pending flip event.

From: robert . foss
Date: Mon May 02 2016 - 15:25:43 EST


From: Robert Foss <robert.foss@xxxxxxxxxxxxx>


As per the docs, atomic_commit should return -EBUSY "if an asycnhronous
update is requested and there is an earlier update pending".


This patch is based on the rockchip patch below:
http://article.gmane.org/gmane.comp.video.dri.devel/151678

Note: This patch was resent as the original submission wasn't addressed
to the apparopriate recipients.

Robert Foss (1):
drm/vc4: Return -EBUSY if there's already a pending flip event.

drivers/gpu/drm/vc4/vc4_crtc.c | 6 ++++++
drivers/gpu/drm/vc4/vc4_drv.h | 1 +
drivers/gpu/drm/vc4/vc4_kms.c | 20 ++++++++++++++++++--
3 files changed, 25 insertions(+), 2 deletions(-)

--
2.5.0