diff mbox

[PATCH/RFC,03/03] iommu/ipmmu-vmsa: Add SYS-DMAC devices as whitelist

Message ID 151377265378.17613.6585544315769524309.sendpatchset@little-apple (mailing list archive)
State RFC
Delegated to: Geert Uytterhoeven
Headers show

Commit Message

Magnus Damm Dec. 20, 2017, 12:24 p.m. UTC
From: Magnus Damm <damm+renesas@opensource.se>

For testing purpose add a list of allowed SYS-DMAC devices to
the IPMMU driver. These may be used together with SCIF serial
ports to validate some basic operation.

Not-Yet-Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
---

 drivers/iommu/ipmmu-vmsa.c |    7 +++++++
 1 file changed, 7 insertions(+)
diff mbox

Patch

--- 0024/drivers/iommu/ipmmu-vmsa.c
+++ work/drivers/iommu/ipmmu-vmsa.c	2017-11-22 13:26:36.270607110 +0900
@@ -756,6 +756,13 @@  static int ipmmu_init_platform_device(st
 
 static bool ipmmu_slave_whitelist(struct device *dev)
 {
+	if (!strcmp(dev_name(dev), "e6700000.dma-controller"))
+		return true;
+	if (!strcmp(dev_name(dev), "e7300000.dma-controller"))
+		return true;
+	if (!strcmp(dev_name(dev), "e7310000.dma-controller"))
+		return true;
+  
 	/* By default, do not allow use of IPMMU */
 	return false;
 }