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.
This commit is contained in:
Justin Hibbits 2022-11-26 11:28:09 -05:00
parent 21d5b592fa
commit fae4c6494a

View file

@ -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);