Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 55ea5444 authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

videobuf2: replace a layering violation with dma_map_resource



vb2_dc_get_userptr pokes into arm direct mapping details to get the
resemblance of a dma address for a a physical address that does is
not backed by a page struct.  Not only is this not portable to other
architectures with dma direct mapping offsets, but also not to uses
of IOMMUs of any kind.  Switch to the proper dma_map_resource /
dma_unmap_resource interface instead.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Acked-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tested-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
parent 645386df
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment