diff options
author | Lendacky, Thomas <Thomas.Lendacky@amd.com> | 2017-02-28 22:03:01 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-02 21:57:53 +0100 |
commit | b42c6761fd1651f564491b53016046c9ebf0b2a9 (patch) | |
tree | bce13cb8d957386bf17989162e522eeb5bf896e9 /drivers/net/ethernet/amd/xgbe/xgbe-dev.c | |
parent | amd-xgbe: Stop the PHY before releasing interrupts (diff) | |
download | linux-b42c6761fd1651f564491b53016046c9ebf0b2a9.tar.xz linux-b42c6761fd1651f564491b53016046c9ebf0b2a9.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/amd/xgbe/xgbe-dev.c')
-rw-r--r-- | drivers/net/ethernet/amd/xgbe/xgbe-dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-dev.c b/drivers/net/ethernet/amd/xgbe/xgbe-dev.c index a7d16db5c4b2..937f37a5dcb2 100644 --- a/drivers/net/ethernet/amd/xgbe/xgbe-dev.c +++ b/drivers/net/ethernet/amd/xgbe/xgbe-dev.c @@ -1323,7 +1323,7 @@ static int xgbe_read_ext_mii_regs(struct xgbe_prv_data *pdata, int addr, static int xgbe_set_ext_mii_mode(struct xgbe_prv_data *pdata, unsigned int port, enum xgbe_mdio_mode mode) { - unsigned int reg_val = 0; + unsigned int reg_val = XGMAC_IOREAD(pdata, MAC_MDIOCL22R); switch (mode) { case XGBE_MDIO_MODE_CL22: |