|
@@ -728,10 +728,12 @@ int genwqe_set_interrupt_capability(struct genwqe_dev *cd, int count)
|
|
|
int rc;
|
|
|
struct pci_dev *pci_dev = cd->pci_dev;
|
|
|
|
|
|
- rc = pci_enable_msi_exact(pci_dev, count);
|
|
|
- if (rc == 0)
|
|
|
- cd->flags |= GENWQE_FLAG_MSI_ENABLED;
|
|
|
- return rc;
|
|
|
+ rc = pci_enable_msi_range(pci_dev, 1, count);
|
|
|
+ if (rc < 0)
|
|
|
+ return rc;
|
|
|
+
|
|
|
+ cd->flags |= GENWQE_FLAG_MSI_ENABLED;
|
|
|
+ return 0;
|
|
|
}
|
|
|
|
|
|
/**
|