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>
This commit is contained in:

committed by
David S. Miller

parent
402168b4c2
commit
b42c6761fd
@@ -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:
|
||||
|
Reference in New Issue
Block a user