dpaa: Mark BMan and QMan as earlier driver modules
The BMan softc must exist when dtsec devices are created, else a NULL pointer is dereferenced. QMan likely as well. Until now, we have relied on order within the fdt parsing to attach correctly, but this obviously is not foolproof. Mark these as BUS_PASS_SUPPORTDEV so they're probed and attached explicitly before dtsec devices.
This commit is contained in:
parent
17e81b7863
commit
3c22d78997
@ -68,7 +68,8 @@ static driver_t bman_driver = {
|
||||
};
|
||||
|
||||
static devclass_t bman_devclass;
|
||||
DRIVER_MODULE(bman, simplebus, bman_driver, bman_devclass, 0, 0);
|
||||
EARLY_DRIVER_MODULE(bman, simplebus, bman_driver, bman_devclass, 0, 0,
|
||||
BUS_PASS_SUPPORTDEV);
|
||||
|
||||
static int
|
||||
bman_fdt_probe(device_t dev)
|
||||
|
@ -68,7 +68,8 @@ static driver_t qman_driver = {
|
||||
};
|
||||
|
||||
static devclass_t qman_devclass;
|
||||
DRIVER_MODULE(qman, simplebus, qman_driver, qman_devclass, 0, 0);
|
||||
EARLY_DRIVER_MODULE(qman, simplebus, qman_driver, qman_devclass, 0, 0,
|
||||
BUS_PASS_SUPPORTDEV);
|
||||
|
||||
static int
|
||||
qman_fdt_probe(device_t dev)
|
||||
|
Loading…
x
Reference in New Issue
Block a user