net: dsa: felix: Set USXGMII link based on BMSR, not LPA
authorAlex Marginean <alexandru.marginean@nxp.com>
Thu, 16 Jan 2020 18:05:06 +0000 (20:05 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Jan 2020 12:14:21 +0000 (13:14 +0100)
commit062a33b1ad7c8df9f8f03f7b01c18e31a794a01d
treecbd033ea747b630383d92551f1d3e696fd0168c2
parent1d0ee02b35b5173f84f97912fd7c982bd063a1f5
net: dsa: felix: Set USXGMII link based on BMSR, not LPA

At least some PHYs (AQR412) don't advertise copper-side link status
during system side AN.

So remove this duplicate assignment to pcs->link and rely on the
previous one for link state: the local indication from the MAC PCS.

Fixes: bdeced75b13f ("net: dsa: felix: Add PCS operations for PHYLINK")
Signed-off-by: Alex Marginean <alexandru.marginean@nxp.com>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/ocelot/felix_vsc9959.c