media: rockchip: rga: set dma mask to 32 bits
authorMichael Tretter <m.tretter@pengutronix.de>
Fri, 13 Oct 2023 11:00:27 +0000 (13:00 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 7 Dec 2023 07:56:14 +0000 (08:56 +0100)
commitec9ef8dda2a24ce1c13904f0d46867c0aa6b4ee7
treee19e599e7cf593a2cfe4ec0cae2e5f8dfd24931c
parent25783e2a984eadd7718f4fcdf1d82ee7e088d52d
media: rockchip: rga: set dma mask to 32 bits

The RGA DMA descriptor list contains only 32-bit addresses. Set the
dma_mask to only allocate memory that is addressable by the descriptors.

This prevents errors when preparing vb2 buffers that were allocated by
the RGA.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/rockchip/rga/rga.c