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)
commitd9663c8c21491267c064cdb028b767404a39d7c7
tree4c102cc2dd1985e6cc48bd6b0af5ce8a5c3cbc53
parentebd6af092a221fc38e28fbb7995c0c7e3f0df875
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