ARM: dma-mapping: convert DMA direction into IOMMU protection attributes
IOMMU mappings take a prot parameter, identifying the protection bits to enforce on the newly created mapping (READ or WRITE). The ARM dma-mapping framework currently just passes 0 as the prot argument, resulting in faulting mappings. This patch infers the protection attributes based on the direction of the DMA transfer. Change-Id: If9c78eca2c9cea2f7309d5e5282127eef92645b2 Cc: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by:Will Deacon <will.deacon@arm.com> Signed-off-by:
Marek Szyprowski <m.szyprowski@samsung.com> Git-commit: 13987d68bcf476a93fa864ea4e58755f1bc4bd30 Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git Signed-off-by:
Mitchel Humpherys <mitchelh@codeaurora.org>
Loading
Please register or sign in to comment