aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/bnx2.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c
index 311c8595c64b..28399d8d8d2b 100644
--- a/drivers/net/bnx2.c
+++ b/drivers/net/bnx2.c
@@ -4143,10 +4143,6 @@ bnx2_init_chip(struct bnx2 *bp)
4143 4143
4144 REG_WR(bp, BNX2_HC_ATTN_BITS_ENABLE, STATUS_ATTN_EVENTS); 4144 REG_WR(bp, BNX2_HC_ATTN_BITS_ENABLE, STATUS_ATTN_EVENTS);
4145 4145
4146 if (REG_RD_IND(bp, bp->shmem_base + BNX2_PORT_FEATURE) &
4147 BNX2_PORT_FEATURE_ASF_ENABLED)
4148 bp->flags |= ASF_ENABLE_FLAG;
4149
4150 /* Initialize the receive filter. */ 4146 /* Initialize the receive filter. */
4151 bnx2_set_rx_mode(bp->dev); 4147 bnx2_set_rx_mode(bp->dev);
4152 4148
@@ -6645,6 +6641,18 @@ bnx2_init_board(struct pci_dev *pdev, struct net_device *dev)
6645 if (i != 2) 6641 if (i != 2)
6646 bp->fw_version[j++] = '.'; 6642 bp->fw_version[j++] = '.';
6647 } 6643 }
6644 if (REG_RD_IND(bp, bp->shmem_base + BNX2_PORT_FEATURE) &
6645 BNX2_PORT_FEATURE_ASF_ENABLED) {
6646 bp->flags |= ASF_ENABLE_FLAG;
6647
6648 for (i = 0; i < 30; i++) {
6649 reg = REG_RD_IND(bp, bp->shmem_base +
6650 BNX2_BC_STATE_CONDITION);
6651 if (reg & BNX2_CONDITION_MFW_RUN_MASK)
6652 break;
6653 msleep(10);
6654 }
6655 }
6648 reg = REG_RD_IND(bp, bp->shmem_base + BNX2_BC_STATE_CONDITION); 6656 reg = REG_RD_IND(bp, bp->shmem_base + BNX2_BC_STATE_CONDITION);
6649 reg &= BNX2_CONDITION_MFW_RUN_MASK; 6657 reg &= BNX2_CONDITION_MFW_RUN_MASK;
6650 if (reg != BNX2_CONDITION_MFW_RUN_UNKNOWN && 6658 if (reg != BNX2_CONDITION_MFW_RUN_UNKNOWN &&