git: fae4c6494ae2 - main - dpaa: Probe and attach pqmdio at BUS_PASS_RESOURCE
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 26 Nov 2022 16:26:24 UTC
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);