summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/omap-iopgtable.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2014-03-08 00:44:38 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2014-04-16 16:30:18 +0200
commit286f600bc890347f7ec7bd50d33210d53a9095a3 (patch)
treee6af94983a711b69aeb5f5208fc6082d3ab3442d /drivers/iommu/omap-iopgtable.h
parent67b779d28d6e8afdd79a70423324273018114cad (diff)
downloadop-kernel-dev-286f600bc890347f7ec7bd50d33210d53a9095a3.zip
op-kernel-dev-286f600bc890347f7ec7bd50d33210d53a9095a3.tar.gz
iommu/omap: Fix map protection value handling
The prot flags passed to the IOMMU map handler are defined in include/linux/iommu.h as IOMMU_(READ|WRITE|CACHE|EXEC). However, the driver expects to receive MMU_RAM_* OMAP-specific flags. This causes IOMMU flags being interpreted as page sizes, leading to failures. Hardcode the OMAP mapping parameters to little-endian, 8-bits and non-mixed page attributes. Furthermore, as the OMAP IOMMU doesn't support read-only or write-only mappings, ignore the prot value. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Sakari Ailus <sakari.ailus@iki.fi> Acked-by: Suman Anna <s-anna@ti.com>
Diffstat (limited to 'drivers/iommu/omap-iopgtable.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud