diff options
author | Ralph Campbell <ralph.campbell@qlogic.com> | 2010-10-22 18:29:54 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2010-10-26 19:09:02 -0400 |
commit | 5d26a1df23f7e904e7b03bb2580288f6ae7cfe48 (patch) | |
tree | 56d3b58e74e58c3031fb87460fb8bd8f07aa1097 /drivers/infiniband | |
parent | 9e43e0106d6f526724911e80adb97dbcec520b5d (diff) |
IB/qib: Allow driver to load if PCIe AER fails
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>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/qib/qib_pcie.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/qib/qib_pcie.c b/drivers/infiniband/hw/qib/qib_pcie.c index 7fa6e5592630..8a644266f4aa 100644 --- a/drivers/infiniband/hw/qib/qib_pcie.c +++ b/drivers/infiniband/hw/qib/qib_pcie.c | |||
@@ -109,10 +109,12 @@ int qib_pcie_init(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
109 | 109 | ||
110 | pci_set_master(pdev); | 110 | pci_set_master(pdev); |
111 | ret = pci_enable_pcie_error_reporting(pdev); | 111 | ret = pci_enable_pcie_error_reporting(pdev); |
112 | if (ret) | 112 | if (ret) { |
113 | qib_early_err(&pdev->dev, | 113 | qib_early_err(&pdev->dev, |
114 | "Unable to enable pcie error reporting: %d\n", | 114 | "Unable to enable pcie error reporting: %d\n", |
115 | ret); | 115 | ret); |
116 | ret = 0; | ||
117 | } | ||
116 | goto done; | 118 | goto done; |
117 | 119 | ||
118 | bail: | 120 | bail: |