drm/vc4: Return -EBUSY if there's already a pending flip event.
authorRobert Foss <robert.foss@collabora.com>
Tue, 3 May 2016 17:48:20 +0000 (13:48 -0400)
committerEric Anholt <eric@anholt.net>
Tue, 31 May 2016 22:15:55 +0000 (15:15 -0700)
commite7c31f6f25b84fed961dc0dce6248878527693ae
tree437782986e1050b5a8a5b40f10282b974524f8a3
parentee7c10e10b632e2319ed1d2d49d63df51a611e62
drm/vc4: Return -EBUSY if there's already a pending flip event.

As per the documentation in drm_crtc.h, atomic_commit should return
-EBUSY if an asynchronous update is requested and there is an earlier
update pending.

v2: Rebase on the s/async/nonblock/ change.

Signed-off-by: Robert Foss <robert.foss@collabora.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/vc4/vc4_kms.c