Skip to content

Commit

Permalink
[media] coda: drop dma_sync_single_for_device in coda_bitstream_queue
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Philipp Zabel authored and Mauro Carvalho Chehab committed Apr 10, 2015
1 parent 582d887 commit 8191919
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/media/platform/coda/coda-bit.c
Original file line number Diff line number Diff line change
@@ -181,10 +181,6 @@ static int coda_bitstream_queue(struct coda_ctx *ctx,
if (n < src_size)
return -ENOSPC;

dma_sync_single_for_device(&ctx->dev->plat_dev->dev,
ctx->bitstream.paddr, ctx->bitstream.size,
DMA_TO_DEVICE);

src_buf->v4l2_buf.sequence = ctx->qsequence++;

return 0;

0 comments on commit 8191919

Please sign in to comment.