]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8c4a2fa3f16e366a74b752b8f3a5ceb0e1e2b7b6
treecbd033ea747b630383d92551f1d3e696fd0168c2
parent521c9028ccce1f1cabbfc0c52445f4ef852363dc
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: eba79fcc16c4 ("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