mirror of
https://github.com/opnsense/src.git
synced 2026-03-28 05:33:12 -04:00
It's possible the MDIO device hasn't been and attached, or is incorrect in the device tree so can't probe and attach. In this case, ofw_bus_find_child_device_by_phandle() will fail, and return NULL. Return an error from find_mdio() here to prevent the MAC from attaching, rather than worry about a NULL pointer dereference later on when accessing the PHY. |
||
|---|---|---|
| .. | ||
| bman.c | ||
| bman.h | ||
| bman_fdt.c | ||
| bman_portals.c | ||
| fman.c | ||
| fman.h | ||
| fman_fdt.c | ||
| fman_mdio.c | ||
| if_dtsec.c | ||
| if_dtsec.h | ||
| if_dtsec_fdt.c | ||
| if_dtsec_im.c | ||
| if_dtsec_im.h | ||
| if_dtsec_rm.c | ||
| if_dtsec_rm.h | ||
| portals.h | ||
| portals_common.c | ||
| qman.c | ||
| qman.h | ||
| qman_fdt.c | ||
| qman_portals.c | ||