This patch adds DMA_ATTR_READ_ONLY attribute to the DMA-mapping subsystem.
This sets mapping attribute read-only.
Signed-off-by: Hiroshi Doyu hdoyu@nvidia.com --- include/linux/dma-attrs.h | 1 + 1 file changed, 1 insertion(+)
diff --git a/include/linux/dma-attrs.h b/include/linux/dma-attrs.h index f272809..5d7371c 100644 --- a/include/linux/dma-attrs.h +++ b/include/linux/dma-attrs.h @@ -18,6 +18,7 @@ enum dma_attr { DMA_ATTR_NO_KERNEL_MAPPING, DMA_ATTR_SKIP_CPU_SYNC, DMA_ATTR_SKIP_FREE_IOVA, + DMA_ATTR_READ_ONLY, DMA_ATTR_MAX, };
linaro-mm-sig@lists.linaro.org