From fae4c6494ae21b422e474b2cb90299beadca5aea Mon Sep 17 00:00:00 2001 From: Justin Hibbits Date: Sat, 26 Nov 2022 11:28:09 -0500 Subject: [PATCH] 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 fcaca5c580c..5a81424d03a 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);