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:
Emmanuel Vadot 2019-08-16 17:08:06 +00:00
parent 3afdc7303c
commit be6d7fc657
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=351129

View File

@ -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");