summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTate Hornbeck <tate.hornbeck@ti.com>2011-09-13 15:15:51 -0500
committerXavier Boudet <x-boudet@ti.com>2012-02-09 17:43:45 +0100
commit637c10b768abe727c14490e6f87cf01dd291348c (patch)
tree26fd0d9be3b2ac482f697d1bd835619615f28f6a
parent4a4cc5b4b81db26943525a355ddf5de962a32565 (diff)
VFL2 GFX: fix timeout when waiting for frame to unlock
Change-Id: I31d5861bf1f2f5daf96977707170b2292dcb2ea6 Signed-off-by: Tate Hornbeck <tate.hornbeck@ti.com>
-rw-r--r--drivers/media/video/omapgfx/gfx_io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/omapgfx/gfx_io.c b/drivers/media/video/omapgfx/gfx_io.c
index 0928a88370de..aa45acb81d1e 100644
--- a/drivers/media/video/omapgfx/gfx_io.c
+++ b/drivers/media/video/omapgfx/gfx_io.c
@@ -471,6 +471,8 @@ static int v4gfx_frame_unlock(struct v4gfx_device *vout, int bufidx)
if (rv == 0) {
if (iteration++ < V4GFX_FRAME_UNLOCK_TIMEOUT)
msleep(1); /* milliseconds */
+ else
+ break; /* Timed out */
}
} while (rv == 0);