]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
bnx2x: enable inta on the pci bus when used
authorYuval Mintz <yuvalmin@broadcom.com>
Tue, 3 Apr 2012 18:41:25 +0000 (18:41 +0000)
committerJoe Jin <joe.jin@oracle.com>
Tue, 28 Aug 2012 07:23:25 +0000 (15:23 +0800)
During boot-from-SAN, if msix interrupts are unavailable and inta
is requested, it is possible that inta would be disabled in the
pci bus. This patch enables inta when requested.

(cherry picked from commit 79a8557a6d18c3861d64ae110ddd7606c65d7504)
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/bnx2x/bnx2x_main.c

index f6500e3a03d86c8d79f48472c9c1dff5d6d69016..80cfc5c07ae8dc01a21bf3556d47bcd4a40ab785 100644 (file)
@@ -1368,6 +1368,9 @@ static void bnx2x_igu_int_enable(struct bnx2x *bp)
 
        REG_WR(bp, IGU_REG_PF_CONFIGURATION, val);
 
+       if (val & IGU_PF_CONF_INT_LINE_EN)
+               pci_intx(bp->pdev, true);
+
        barrier();
 
        /* init leading/trailing edge */