amd-xgbe: Be sure to set MDIO modes on device (re)start
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Tue, 28 Feb 2017 21:03:01 +0000 (15:03 -0600)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Mar 2017 20:57:53 +0000 (12:57 -0800)
commitb42c6761fd1651f564491b53016046c9ebf0b2a9
treebce13cb8d957386bf17989162e522eeb5bf896e9
parent402168b4c2dc0734b8fbd282eff77da0275c5129
amd-xgbe: Be sure to set MDIO modes on device (re)start

The MDIO register mode is set when the device is probed. But when the
device is brought down and then back up, the MDIO register mode has been
reset.  Be sure to reset the mode during device startup and only change
the mode of the address specified.

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