mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-17 02:36:21 +00:00
media: platform: rga: fix 32-bit DMA limitation
The destination buffer flags are assigned twice but source is not set in what looks like a copy+paste mistake. Assign the source queue flags so the 32-bit DMA limitation is handled consistently. Fixes: ec9ef8dda2a2 ("media: rockchip: rga: set dma mask to 32 bits") Cc: <stable@vger.kernel.org> Signed-off-by: John Keeping <jkeeping@inmusicbrands.com> Reviewed-by: Michael Tretter <m.tretter@pengutronix.de> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
parent
93ee2d7ce2
commit
953c03d8cb
@ -102,7 +102,7 @@ queue_init(void *priv, struct vb2_queue *src_vq, struct vb2_queue *dst_vq)
|
||||
src_vq->drv_priv = ctx;
|
||||
src_vq->ops = &rga_qops;
|
||||
src_vq->mem_ops = &vb2_dma_sg_memops;
|
||||
dst_vq->gfp_flags = __GFP_DMA32;
|
||||
src_vq->gfp_flags = __GFP_DMA32;
|
||||
src_vq->buf_struct_size = sizeof(struct rga_vb_buffer);
|
||||
src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY;
|
||||
src_vq->lock = &ctx->rga->mutex;
|
||||
|
Loading…
x
Reference in New Issue
Block a user