Commit da29f2d8 authored by Jose Abreu's avatar Jose Abreu Committed by David S. Miller
Browse files

net: stmmac: Fixed link does not need MDIO Bus



When using fixed link we don't need the MDIO bus support.

Reported-by: default avatarHeiko Stuebner <heiko@sntech.de>
Reported-by: default avatarkernelci.org bot <bot@kernelci.org>
Fixes: d3e014ec ("net: stmmac: platform: Fix MDIO init for platforms without PHY")
Signed-off-by: default avatarJose Abreu <Jose.Abreu@synopsys.com>
Acked-by: default avatarSriram Dash <Sriram.dash@samsung.com>
Tested-by: default avatarPatrice Chotard <patrice.chotard@st.com>
Tested-by: default avatarHeiko Stuebner <heiko@sntech.de>
Acked-by: default avatarNeil Armstrong <narmstrong@baylibre.com>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Tested-by: Florian Fainelli <f.fainelli@gmail> # Lamobo R1 (fixed-link + MDIO sub node for roboswitch).
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b57e1fff
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -320,7 +320,7 @@ out:
static int stmmac_dt_phy(struct plat_stmmacenet_data *plat,
			 struct device_node *np, struct device *dev)
{
	bool mdio = false;
	bool mdio = !of_phy_is_fixed_link(np);
	static const struct of_device_id need_mdio_ids[] = {
		{ .compatible = "snps,dwc-qos-ethernet-4.10" },
		{},