Skip to content

Commit

Permalink
IB/qib: Allow driver to load if PCIe AER fails
Browse files Browse the repository at this point in the history
Some PCIe root complex chip sets don't support advanced error reporting.
Allow the driver to load OK if pci_enable_pcie_error_reporting() fails.

Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
  • Loading branch information
Ralph Campbell authored and Roland Dreier committed Oct 26, 2010
1 parent 9e43e01 commit 5d26a1d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/infiniband/hw/qib/qib_pcie.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,12 @@ int qib_pcie_init(struct pci_dev *pdev, const struct pci_device_id *ent)

pci_set_master(pdev);
ret = pci_enable_pcie_error_reporting(pdev);
if (ret)
if (ret) {
qib_early_err(&pdev->dev,
"Unable to enable pcie error reporting: %d\n",
ret);
ret = 0;
}
goto done;

bail:
Expand Down

0 comments on commit 5d26a1d

Please sign in to comment.