]> git.baikalelectronics.ru Git - kernel.git/commit
net: amd-xgbe: Reset link when the link never comes back
authorShyam Sundar S K <Shyam-sundar.S-k@amd.com>
Tue, 16 Feb 2021 19:07:09 +0000 (00:37 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Feb 2021 22:09:45 +0000 (14:09 -0800)
commit171e2f7d1a2e8aa95b5b0cebf315db41f3ff2cb6
tree52485ff84ec3700ecfe92676bb4b65dd98e9be04
parent7b2dd69f97a3666c3baddc6a64604d780dd8d89d
net: amd-xgbe: Reset link when the link never comes back

Normally, auto negotiation and reconnect should be automatically done by
the hardware. But there seems to be an issue where auto negotiation has
to be restarted manually. This happens because of link training and so
even though still connected to the partner the link never "comes back".
This needs an auto-negotiation restart.

Also, a change in xgbe-mdio is needed to get ethtool to recognize the
link down and get the link change message. This change is only
required in a backplane connection mode.

Fixes: 7422f7a8a299 ("amd-xgbe: Add support for SFP+ modules")
Co-developed-by: Sudheesh Mavila <sudheesh.mavila@amd.com>
Signed-off-by: Sudheesh Mavila <sudheesh.mavila@amd.com>
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-mdio.c
drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c