Author: manu Date: Fri Aug 16 17:08:06 2019 New Revision: 351129 URL: https://svnweb.freebsd.org/changeset/base/351129
Log: 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 Modified: head/sys/dev/fdt/simple_mfd.c Modified: head/sys/dev/fdt/simple_mfd.c ============================================================================== --- head/sys/dev/fdt/simple_mfd.c Fri Aug 16 17:03:37 2019 (r351128) +++ head/sys/dev/fdt/simple_mfd.c Fri Aug 16 17:08:06 2019 (r351129) @@ -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"); _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"