]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit56503d55cc8b843096a5f51355712ca837f3757b
tree9f27f1b5e02fedc5c5e56b6704c82ecccecdf6b8
parent549b32af9f7c4b3a924ddf4feb3b09aae6d8c867
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