Message ID | CAO8GWq=3_nNi5Uu9DeyQcRfiG5a8jQg59yC_isCc_50TA+Nbdw@mail.gmail.com |
---|---|
State | New |
Headers | show |
diff --git a/drivers/media/video/videobuf2-dma-contig.c b/drivers/media/video/videobuf2-dma-contig.c index 5cf3107..5114a51 100644 --- a/drivers/media/video/videobuf2-dma-contig.c +++ b/drivers/media/video/videobuf2-dma-contig.c @@ -161,7 +161,11 @@ static void vb2_dc_prepare(void *buf_priv) if (!sgt) return; - dma_sync_sg_for_device(buf->dev, sgt->sgl, sgt->nents, buf->dma_dir); + if (!buf->db_attach) + dma_sync_sg_for_device(buf->dev, sgt->sgl, sgt->nents, buf->dma_dir); } static void vb2_dc_finish(void *buf_priv) @@ -172,7 +176,11 @@ static void vb2_dc_finish(void *buf_priv) if (!sgt) return;