hpsa: Fallback to MSI rather than to INTx if MSI-X failed
authorAlexander Gordeev <[email protected]>
Mon, 18 Aug 2014 06:01:41 +0000 (08:01 +0200)
committerChristoph Hellwig <[email protected]>
Tue, 16 Sep 2014 16:09:38 +0000 (09:09 -0700)
Currently the driver falls back to INTx mode when MSI-X
initialization failed. This is a suboptimal behaviour
for chips that also support MSI. This update changes that
behaviour and falls back to MSI mode in case MSI-X mode
initialization failed.

Signed-off-by: Alexander Gordeev <[email protected]>
Acked-by: "Stephen M. Cameron" <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Christoph Hellwig <[email protected]>
drivers/scsi/hpsa.c

index 6b35d0dfe64c943a5a9caac8564fdfa8fc5c9a83..a9c4c9f05bb4b46c767524f8fbc7cce6ab428e68 100644 (file)
@@ -6176,7 +6176,6 @@ static void hpsa_interrupt_mode(struct ctlr_info *h)
                        dev_warn(&h->pdev->dev, "MSI-X init failed %d\n",
                               err);
                        h->msix_vector = 0;
-                       goto default_int_mode;
                }
        }
        if (pci_find_capability(h->pdev, PCI_CAP_ID_MSI)) {