mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 22:14:04 +02:00
net: dsa: sja1105: error out on unsupported PHY mode
commit6729188d26upstream. The driver continues probing when a port is configured for an unsupported PHY interface type, instead it should stop. Fixes:8aa9ebccae("net: dsa: Introduce driver for NXP SJA1105 5-port L2 switch") Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4ef506c071
commit
4a368bc25a
|
|
@ -206,6 +206,7 @@ static int sja1105_init_mii_settings(struct sja1105_private *priv,
|
||||||
default:
|
default:
|
||||||
dev_err(dev, "Unsupported PHY mode %s!\n",
|
dev_err(dev, "Unsupported PHY mode %s!\n",
|
||||||
phy_modes(ports[i].phy_mode));
|
phy_modes(ports[i].phy_mode));
|
||||||
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Even though the SerDes port is able to drive SGMII autoneg
|
/* Even though the SerDes port is able to drive SGMII autoneg
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user