[PATCH 0/8] net: fec_mxc: fix bugs when using DM_MDIO and DM_ETH_PHY.

Alexander Feilke Alexander.Feilke at ew.tq-group.com
Fri Nov 21 18:29:29 CET 2025


This fixes various oversights in the fec_mxc driver and ultimately adds support
for devices with multiple FECs each using its own bus. The patches were tested
internally on an i.MX7D-based module with separate MDIO buses and on an iMX6UL
with shared MDIO buses.

Checkpatch also yielded some warnings regarding CONFIG #ifdef's, which weren't
included in this series yet.

Markus Niebel (8):
  net: fec_mxc: respect return value of phy_config
  net: fec-mxc: prevent crash if no MAC address is set
  net: fec_mxc: fix probe of MDIO bus for DM_MDIO
  net: fec_mxc: fix remove with DM_MDIO
  net: fec_mxc: rewrite fallback MDIO Bus allocation
  net: fec_mxc: fix usage of DM_MDIO and DM_ETH_PHY
  net: fec_mxc: add unique bus and device names for DM_MDIO
  net: fec_mxc.c: improve readability of dm_fec_bind_mdio

 drivers/net/fec_mxc.c | 56 +++++++++++++++++++++++++++++++++----------
 drivers/net/fec_mxc.h |  4 ++++
 2 files changed, 48 insertions(+), 12 deletions(-)

-- 
2.34.1



More information about the U-Boot mailing list