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
This commit is contained in:
manu 2019-08-16 17:08:06 +00:00
parent ac28fa5277
commit 557f4caa9c

View File

@ -187,7 +187,7 @@ simple_mfd_attach(device_t dev)
if (ofw_bus_is_compatible(dev, "syscon")) { if (ofw_bus_is_compatible(dev, "syscon")) {
sc->mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, sc->mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid,
RF_ACTIVE); RF_ACTIVE | RF_SHAREABLE);
if (sc->mem_res == NULL) { if (sc->mem_res == NULL) {
device_printf(dev, device_printf(dev,
"Cannot allocate memory resource\n"); "Cannot allocate memory resource\n");