]> git.ipfire.org Git - thirdparty/u-boot.git/commit
net: fec_mxc: fix remove with DM_MDIO
authorMarkus Niebel <Markus.Niebel@ew.tq-group.com>
Fri, 21 Nov 2025 17:34:44 +0000 (18:34 +0100)
committerFabio Estevam <festevam@nabladev.com>
Sat, 29 Nov 2025 17:42:26 +0000 (14:42 -0300)
commitaafdd856941f1ab390db4bbf3105c5480f03397b
tree5f79b2384b3654c6599ed2bb542d0f970878a51c
parent206f38e8dd33371ec383ae73c07adb76b7b7abcb
net: fec_mxc: fix remove with DM_MDIO

If DM_MDIO is used and the FEC device is removed the mdio API
must not be used to remove the bus structure. Store pointer the
the udevice for MDIO bus created by dm_fec_bind_mdio and use DM
functions to cleanup the device in fecmxc_remove.

Fixes: 3b8f99a3e762 ("net: fec: add support for DM_MDIO")
Signed-off-by: Markus Niebel <Markus.Niebel@ew.tq-group.com>
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Alexander Feilke <alexander.feilke@ew.tq-group.com>
drivers/net/fec_mxc.c
drivers/net/fec_mxc.h