]> 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)
commit68c2577215d69840229db9072b778b15a62c007a
tree9f27f1b5e02fedc5c5e56b6704c82ecccecdf6b8
parent8468dda58df7f1184a8206f241a69b5665bf12c4
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