Date: Fri, 16 Aug 2019 17:08:06 +0000 (UTC) From: Emmanuel Vadot <manu@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r351129 - head/sys/dev/fdt Message-ID: <201908161708.x7GH863h088885@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908161708.x7GH863h088885>