aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/coda
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2015-03-25 12:45:09 -0400
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-04-10 09:11:37 -0400
commit8191919bff678ae16050c60e1f86355d7731ac73 (patch)
treedfcd8b5ff9f57e7cd9c65aaa42d70dfe658f2a7c /drivers/media/platform/coda
parent582d887211612c197fc8ea9435503f9b278ce76f (diff)
[media] coda: drop dma_sync_single_for_device in coda_bitstream_queue
Issuing a cache flush for the whole bitstream buffer is not optimal in the first place when only a part of it was written. But given that the buffer is mapped in writecombine mode, it is not needed at all. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Tested-by: Ian Molton <imolton@ad-holdings.co.uk> Signed-off-by: Kamil Debski <k.debski@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/platform/coda')
-rw-r--r--drivers/media/platform/coda/coda-bit.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/media/platform/coda/coda-bit.c b/drivers/media/platform/coda/coda-bit.c
index d39789d59d17..d336cb66b42b 100644
--- a/drivers/media/platform/coda/coda-bit.c
+++ b/drivers/media/platform/coda/coda-bit.c
@@ -181,10 +181,6 @@ static int coda_bitstream_queue(struct coda_ctx *ctx,
181 if (n < src_size) 181 if (n < src_size)
182 return -ENOSPC; 182 return -ENOSPC;
183 183
184 dma_sync_single_for_device(&ctx->dev->plat_dev->dev,
185 ctx->bitstream.paddr, ctx->bitstream.size,
186 DMA_TO_DEVICE);
187
188 src_buf->v4l2_buf.sequence = ctx->qsequence++; 184 src_buf->v4l2_buf.sequence = ctx->qsequence++;
189 185
190 return 0; 186 return 0;