From: stefano.babic at babic.homelinux.org Date: Sun, 2 May 2021 13:42:26 +0200 (CEST) Subject: [PATCH v2 2/2] net: fec: Only unregister MII bus if we registered it In-Reply-To: <20210415170609.3399111-2-sean.anderson@seco.com> Message-ID: <20210502114226.AA55A81D43@phobos.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > 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 > Reviewed-by: Ramon Fried 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 =====================================================================