From 557f4caa9c2e42b113823ad01df63254057109a9 Mon Sep 17 00:00:00 2001 From: manu Date: Fri, 16 Aug 2019 17:08:06 +0000 Subject: [PATCH] fdt: simple-mfd: Set the syscon memory to SHAREABLE Since syscon is usually used with another compatible string (and so another driver), this driver might want to map the memory too. MFC after: 1 week --- sys/dev/fdt/simple_mfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/fdt/simple_mfd.c b/sys/dev/fdt/simple_mfd.c index 596043629ea6..e824daf1a277 100644 --- a/sys/dev/fdt/simple_mfd.c +++ b/sys/dev/fdt/simple_mfd.c @@ -187,7 +187,7 @@ simple_mfd_attach(device_t dev) if (ofw_bus_is_compatible(dev, "syscon")) { sc->mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, - RF_ACTIVE); + RF_ACTIVE | RF_SHAREABLE); if (sc->mem_res == NULL) { device_printf(dev, "Cannot allocate memory resource\n");