[PATCH v2 2/2] net: fec: Only unregister MII bus if we registered it

stefano.babic at babic.homelinux.org stefano.babic at babic.homelinux.org
Sun May 2 13:42:26 CEST 2021

> If we fail to probe for whatever reason, we cannot unregister/free the
> MII bus unless we registered it with fec_get_miibus. This fixes FECs
> sharing an MDIO bus from destroying it, preventing the other FEC from
> using it.
> Fixes: 6a895d039b ("net: Update eQos driver and FEC driver to use eth phy interfaces")
> Signed-off-by: Sean Anderson <sean.anderson at seco.com>
> Reviewed-by: Ramon Fried <rfried.dev at gmail.com>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de

More information about the U-Boot mailing list