]> git.baikalelectronics.ru Git - kernel.git/commit
amd-xgbe-phy: Use phydev advertising field vs supported
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Fri, 20 Mar 2015 16:49:42 +0000 (11:49 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Mar 2015 20:33:56 +0000 (16:33 -0400)
commit50e1ca63a76b4e1de5632814cd8e042e90e605ac
tree4c102cc2dd1985e6cc48bd6b0af5ce8a5c3cbc53
parent7074359002ae8663af9e04ffab78c966fd2edb7b
amd-xgbe-phy: Use phydev advertising field vs supported

With ethtool being able to control what is advertised, the advertising
field is what should be used for priming the auto-negotiation registers
and for various other checks, instead of the supported field.

Also, move the initial setting of the supported and advertising fields
into the probe function so that they are not reset each time the device
is brought up, thus allowing the user to set as desired before bringing
the device up.

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