diff options
Diffstat (limited to 'drivers/net/bnx2x_link.c')
-rw-r--r-- | drivers/net/bnx2x_link.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/bnx2x_link.c b/drivers/net/bnx2x_link.c index dc3b69e1fd1d..b81a05737d48 100644 --- a/drivers/net/bnx2x_link.c +++ b/drivers/net/bnx2x_link.c | |||
@@ -397,7 +397,8 @@ static u8 bnx2x_emac_enable(struct link_params *params, | |||
397 | 397 | ||
398 | /* enable access for bmac registers */ | 398 | /* enable access for bmac registers */ |
399 | REG_WR(bp, NIG_REG_BMAC0_REGS_OUT_EN + port*4, 0x1); | 399 | REG_WR(bp, NIG_REG_BMAC0_REGS_OUT_EN + port*4, 0x1); |
400 | } | 400 | } else |
401 | REG_WR(bp, NIG_REG_BMAC0_REGS_OUT_EN + port*4, 0x0); | ||
401 | 402 | ||
402 | vars->mac_type = MAC_TYPE_EMAC; | 403 | vars->mac_type = MAC_TYPE_EMAC; |
403 | return 0; | 404 | return 0; |
@@ -1021,8 +1022,8 @@ static u8 bnx2x_reset_unicore(struct link_params *params) | |||
1021 | MDIO_COMBO_IEEE0_MII_CONTROL, | 1022 | MDIO_COMBO_IEEE0_MII_CONTROL, |
1022 | (mii_control | | 1023 | (mii_control | |
1023 | MDIO_COMBO_IEEO_MII_CONTROL_RESET)); | 1024 | MDIO_COMBO_IEEO_MII_CONTROL_RESET)); |
1024 | 1025 | if (params->switch_cfg == SWITCH_CFG_1G) | |
1025 | bnx2x_set_serdes_access(params); | 1026 | bnx2x_set_serdes_access(params); |
1026 | 1027 | ||
1027 | /* wait for the reset to self clear */ | 1028 | /* wait for the reset to self clear */ |
1028 | for (i = 0; i < MDIO_ACCESS_TIMEOUT; i++) { | 1029 | for (i = 0; i < MDIO_ACCESS_TIMEOUT; i++) { |