Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Nov 2022 16:26:24 GMT
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: fae4c6494ae2 - main - dpaa: Probe and attach pqmdio at BUS_PASS_RESOURCE
Message-ID:  <202211261626.2AQGQO71008935@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhibbits:

URL: https://cgit.FreeBSD.org/src/commit/?id=fae4c6494ae21b422e474b2cb90299beadca5aea

commit fae4c6494ae21b422e474b2cb90299beadca5aea
Author:     Justin Hibbits <jhibbits@FreeBSD.org>
AuthorDate: 2022-11-26 16:28:09 +0000
Commit:     Justin Hibbits <jhibbits@FreeBSD.org>
CommitDate: 2022-11-26 16:28:09 +0000

    dpaa: Probe and attach pqmdio at BUS_PASS_RESOURCE
    
    Avoid the fragile nature of depending on ordering of the devices in the
    FDT by forcing the MDIO driver to precede the DTSEC driver.
---
 sys/dev/dpaa/fman_mdio.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys/dev/dpaa/fman_mdio.c b/sys/dev/dpaa/fman_mdio.c
index fcaca5c580c9..5a81424d03a3 100644
--- a/sys/dev/dpaa/fman_mdio.c
+++ b/sys/dev/dpaa/fman_mdio.c
@@ -204,7 +204,8 @@ pqmdio_miibus_writereg(device_t dev, int phy, int reg, int value)
 	return (0);
 }
 
-DRIVER_MODULE(pqmdio, fman, pqmdio_driver, 0, 0);
+EARLY_DRIVER_MODULE(pqmdio, fman, pqmdio_driver, 0, 0,
+    BUS_PASS_RESOURCE);
 DRIVER_MODULE(miibus, pqmdio, miibus_driver, 0, 0);
 MODULE_DEPEND(pqmdio, miibus, 1, 1, 1);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202211261626.2AQGQO71008935>