From: Philipp Zabel
Date: Wed, 25 Jul 2012 13:46:09 +0000 (-0300)
Subject: [media] media: coda: ignore coda busy status in coda_job_ready
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bcedb4c2422801e37c3d9c716597e8883d1b4e87;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git
[media] media: coda: ignore coda busy status in coda_job_ready
job_ready is supposed to signal whether a context is ready to be
added to the job queue, not whether the CODA is ready to run it
immediately.
Calling v4l2_m2m_job_finish at the end of coda_irq_handler already
guarantees that the coda is ready when v4l2-mem2mem eventually tries
to run the next queued job.
Signed-off-by: Philipp Zabel
Tested-by: Javier Martin
Signed-off-by: Mauro Carvalho Chehab
---
diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c
index 9223693b9a8d..01a8fe3e17f9 100644
--- a/drivers/media/platform/coda.c
+++ b/drivers/media/platform/coda.c
@@ -743,12 +743,6 @@ static int coda_job_ready(void *m2m_priv)
return 0;
}
- if (coda_isbusy(ctx->dev)) {
- v4l2_dbg(1, coda_debug, &ctx->dev->v4l2_dev,
- "not ready: coda is still busy.\n");
- return 0;
- }
-
v4l2_dbg(1, coda_debug, &ctx->dev->v4l2_dev,
"job ready\n");
return 1;