diff options
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c index b4838510f3da..dce452d33c61 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | |||
@@ -1539,26 +1539,31 @@ static void bnx2x_igu_int_enable(struct bnx2x *bp) | |||
1539 | if (msix) { | 1539 | if (msix) { |
1540 | val &= ~(IGU_PF_CONF_INT_LINE_EN | | 1540 | val &= ~(IGU_PF_CONF_INT_LINE_EN | |
1541 | IGU_PF_CONF_SINGLE_ISR_EN); | 1541 | IGU_PF_CONF_SINGLE_ISR_EN); |
1542 | val |= (IGU_PF_CONF_FUNC_EN | | 1542 | val |= (IGU_PF_CONF_MSI_MSIX_EN | |
1543 | IGU_PF_CONF_MSI_MSIX_EN | | ||
1544 | IGU_PF_CONF_ATTN_BIT_EN); | 1543 | IGU_PF_CONF_ATTN_BIT_EN); |
1545 | 1544 | ||
1546 | if (single_msix) | 1545 | if (single_msix) |
1547 | val |= IGU_PF_CONF_SINGLE_ISR_EN; | 1546 | val |= IGU_PF_CONF_SINGLE_ISR_EN; |
1548 | } else if (msi) { | 1547 | } else if (msi) { |
1549 | val &= ~IGU_PF_CONF_INT_LINE_EN; | 1548 | val &= ~IGU_PF_CONF_INT_LINE_EN; |
1550 | val |= (IGU_PF_CONF_FUNC_EN | | 1549 | val |= (IGU_PF_CONF_MSI_MSIX_EN | |
1551 | IGU_PF_CONF_MSI_MSIX_EN | | ||
1552 | IGU_PF_CONF_ATTN_BIT_EN | | 1550 | IGU_PF_CONF_ATTN_BIT_EN | |
1553 | IGU_PF_CONF_SINGLE_ISR_EN); | 1551 | IGU_PF_CONF_SINGLE_ISR_EN); |
1554 | } else { | 1552 | } else { |
1555 | val &= ~IGU_PF_CONF_MSI_MSIX_EN; | 1553 | val &= ~IGU_PF_CONF_MSI_MSIX_EN; |
1556 | val |= (IGU_PF_CONF_FUNC_EN | | 1554 | val |= (IGU_PF_CONF_INT_LINE_EN | |
1557 | IGU_PF_CONF_INT_LINE_EN | | ||
1558 | IGU_PF_CONF_ATTN_BIT_EN | | 1555 | IGU_PF_CONF_ATTN_BIT_EN | |
1559 | IGU_PF_CONF_SINGLE_ISR_EN); | 1556 | IGU_PF_CONF_SINGLE_ISR_EN); |
1560 | } | 1557 | } |
1561 | 1558 | ||
1559 | /* Clean previous status - need to configure igu prior to ack*/ | ||
1560 | if ((!msix) || single_msix) { | ||
1561 | REG_WR(bp, IGU_REG_PF_CONFIGURATION, val); | ||
1562 | bnx2x_ack_int(bp); | ||
1563 | } | ||
1564 | |||
1565 | val |= IGU_PF_CONF_FUNC_EN; | ||
1566 | |||
1562 | DP(NETIF_MSG_IFUP, "write 0x%x to IGU mode %s\n", | 1567 | DP(NETIF_MSG_IFUP, "write 0x%x to IGU mode %s\n", |
1563 | val, (msix ? "MSI-X" : (msi ? "MSI" : "INTx"))); | 1568 | val, (msix ? "MSI-X" : (msi ? "MSI" : "INTx"))); |
1564 | 1569 | ||