aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/bnx2x_main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c
index b47b53115499..424541239f52 100644
--- a/drivers/net/bnx2x_main.c
+++ b/drivers/net/bnx2x_main.c
@@ -7354,17 +7354,17 @@ static int bnx2x_nic_unload(struct bnx2x *bp, int unload_mode)
7354 7354
7355 for (i = 0; i < MC_HASH_SIZE; i++) 7355 for (i = 0; i < MC_HASH_SIZE; i++)
7356 REG_WR(bp, MC_HASH_OFFSET(bp, i), 0); 7356 REG_WR(bp, MC_HASH_OFFSET(bp, i), 0);
7357
7358 REG_WR(bp, MISC_REG_E1HMF_MODE, 0);
7357 } 7359 }
7358 7360
7359 if (unload_mode == UNLOAD_NORMAL) 7361 if (unload_mode == UNLOAD_NORMAL)
7360 reset_code = DRV_MSG_CODE_UNLOAD_REQ_WOL_DIS; 7362 reset_code = DRV_MSG_CODE_UNLOAD_REQ_WOL_DIS;
7361 7363
7362 else if (bp->flags & NO_WOL_FLAG) { 7364 else if (bp->flags & NO_WOL_FLAG)
7363 reset_code = DRV_MSG_CODE_UNLOAD_REQ_WOL_MCP; 7365 reset_code = DRV_MSG_CODE_UNLOAD_REQ_WOL_MCP;
7364 if (CHIP_IS_E1H(bp))
7365 REG_WR(bp, MISC_REG_E1HMF_MODE, 0);
7366 7366
7367 } else if (bp->wol) { 7367 else if (bp->wol) {
7368 u32 emac_base = port ? GRCBASE_EMAC1 : GRCBASE_EMAC0; 7368 u32 emac_base = port ? GRCBASE_EMAC1 : GRCBASE_EMAC0;
7369 u8 *mac_addr = bp->dev->dev_addr; 7369 u8 *mac_addr = bp->dev->dev_addr;
7370 u32 val; 7370 u32 val;