From: Philipp Zabel Date: Fri, 23 Jan 2015 16:51:24 +0000 (-0300) Subject: [media] coda: clear RET_DEC_PIC_SUCCESS flag in prepare_decode X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8c9ef6b16c433fd4850ef8f9dd74af36232ed055;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [media] coda: clear RET_DEC_PIC_SUCCESS flag in prepare_decode To make sure a set RET_DEC_PIC_SUCCESS flag is not a leftover from a previous successful run, clear it in prepare_decode. Signed-off-by: Philipp Zabel Signed-off-by: Kamil Debski Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/coda/coda-bit.c b/drivers/media/platform/coda/coda-bit.c index 6b00a45e84a4..d81635d272de 100644 --- a/drivers/media/platform/coda/coda-bit.c +++ b/drivers/media/platform/coda/coda-bit.c @@ -1666,6 +1666,9 @@ static int coda_prepare_decode(struct coda_ctx *ctx) coda_kfifo_sync_to_device_full(ctx); + /* Clear decode success flag */ + coda_write(dev, 0, CODA_RET_DEC_PIC_SUCCESS); + coda_command_async(ctx, CODA_COMMAND_PIC_RUN); return 0;