From: Will Deacon Date: Mon, 10 Jun 2013 18:34:39 +0000 (+0100) Subject: ARM: dma-mapping: convert DMA direction into IOMMU protection attributes X-Git-Tag: v3.11-rc1~78^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13987d68bcf476a93fa864ea4e58755f1bc4bd30;p=pandora-kernel.git 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. Cc: Marek Szyprowski Signed-off-by: Will Deacon Signed-off-by: Marek Szyprowski --- Reading git-diff-tree failed