]> git.baikalelectronics.ru Git - kernel.git/commit
amd-xgbe: Fix SFP PHY supported/advertised settings
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Wed, 28 Jun 2017 18:41:40 +0000 (13:41 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Jun 2017 19:14:15 +0000 (15:14 -0400)
commit08d2efca0c159102a41922486cb3831fb86ddc3a
tree9f27f1b5e02fedc5c5e56b6704c82ecccecdf6b8
parent019989249861cbc3eb799cae93dabee88f1a4682
amd-xgbe: Fix SFP PHY supported/advertised settings

When using SFPs, the supported and advertised settings should be initially
based on the SFP that has been detected.  The code currently indicates the
overall support of the device as opposed to what the SFP is capable of.
Update the code to change the supported link modes, auto-negotiation, etc.
to be based on the installed SFP.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c