amd-xgbe: Improve SFP 100Mbps auto-negotiation
authorTom Lendacky <thomas.lendacky@amd.com>
Wed, 23 May 2018 16:39:47 +0000 (11:39 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 May 2018 20:33:01 +0000 (16:33 -0400)
commit76cce0af85a0d5d8abef8b60eece5798ea7eea5a
tree90b202a343f7866142fd8b2d84ab67d6c4542af9
parente722ec82374b7a0c0cfa954e4f780221139c5f93
amd-xgbe: Improve SFP 100Mbps auto-negotiation

After changing speed to 100Mbps as a result of auto-negotiation (AN),
some 10/100/1000Mbps SFPs indicate a successful link (no faults or loss
of signal), but cannot successfully transmit or receive data.  These
SFPs required an extra auto-negotiation (AN) after the speed change in
order to operate properly.  Add a quirk for these SFPs so that if the
outcome of the AN actually results in changing to a new speed, re-initiate
AN at that new speed.

Signed-off-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
drivers/net/ethernet/amd/xgbe/xgbe.h