git: 598e073f749b - main - dpaa: Use BUS_PASS_SUPPORTDEV for pqmdio
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 26 Nov 2022 16:30:51 UTC
The branch main has been updated by jhibbits:
URL: https://cgit.FreeBSD.org/src/commit/?id=598e073f749b4db5bca5a4555a6f794598ca11a7
commit 598e073f749b4db5bca5a4555a6f794598ca11a7
Author: Justin Hibbits <jhibbits@FreeBSD.org>
AuthorDate: 2022-11-26 16:32:24 +0000
Commit: Justin Hibbits <jhibbits@FreeBSD.org>
CommitDate: 2022-11-26 16:32:24 +0000
dpaa: Use BUS_PASS_SUPPORTDEV for pqmdio
BUS_PASS_SUPPORTDEV is semantically better than BUS_PASS_RESOURCE, since
it's a support device for dtsec, so only needs probed before dtsec, not
before interrupts.
Suggested by: manu
---
sys/dev/dpaa/fman_mdio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/dev/dpaa/fman_mdio.c b/sys/dev/dpaa/fman_mdio.c
index 5a81424d03a3..28ade4e3b315 100644
--- a/sys/dev/dpaa/fman_mdio.c
+++ b/sys/dev/dpaa/fman_mdio.c
@@ -205,7 +205,7 @@ pqmdio_miibus_writereg(device_t dev, int phy, int reg, int value)
}
EARLY_DRIVER_MODULE(pqmdio, fman, pqmdio_driver, 0, 0,
- BUS_PASS_RESOURCE);
+ BUS_PASS_SUPPORTDEV);
DRIVER_MODULE(miibus, pqmdio, miibus_driver, 0, 0);
MODULE_DEPEND(pqmdio, miibus, 1, 1, 1);