|
@@ -149,7 +149,7 @@ static int mthca_tune_pci(struct mthca_dev *mdev)
|
|
|
} else if (!(mdev->mthca_flags & MTHCA_FLAG_PCIE))
|
|
|
mthca_info(mdev, "No PCI-X capability, not setting RBC.\n");
|
|
|
|
|
|
- if (pci_find_capability(mdev->pdev, PCI_CAP_ID_EXP)) {
|
|
|
+ if (pci_is_pcie(mdev->pdev)) {
|
|
|
if (pcie_set_readrq(mdev->pdev, 4096)) {
|
|
|
mthca_err(mdev, "Couldn't write PCI Express read request, "
|
|
|
"aborting.\n");
|