Skip to content

Commit

Permalink
dpaa2: Attach memac_mdio earlier when loading dpaa2 as a module.
Browse files Browse the repository at this point in the history
It is still needed when dpaa2 compiled as a kernel module according to
my tests (not sure whether it breaks NFS root or not though).
  • Loading branch information
dsalychev committed Jun 24, 2022
1 parent cd583db commit dc9ae02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sys/dev/dpaa2/dpaa2_mc_acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,5 +415,7 @@ static device_method_t dpaa2_mc_acpi_methods[] = {
DEFINE_CLASS_1(dpaa2_mc, dpaa2_mc_acpi_driver, dpaa2_mc_acpi_methods,
sizeof(struct dpaa2_mc_softc), dpaa2_mc_driver);

DRIVER_MODULE(dpaa2_mc, acpi, dpaa2_mc_acpi_driver, NULL, NULL);
/* Make sure miibus gets procesed first. */
DRIVER_MODULE_ORDERED(dpaa2_mc, acpi, dpaa2_mc_acpi_driver, NULL, NULL,
SI_ORDER_ANY);
MODULE_DEPEND(dpaa2_mc, memac_mdio, 1, 1, 1);

0 comments on commit dc9ae02

Please sign in to comment.