summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Hsu <ryanhsu@qca.qualcomm.com>2015-04-24 12:10:33 -0700
committerAnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com>2015-05-04 23:39:25 +0530
commit59cb8d4e6423ee2e551e3b665cdd45e6ddcbba6c (patch)
treedd0e3a2cbf93caaab5555874718adc4a12950b6f
parent52be7e1f64ac37e95f70ddcebd86d6ed91c8b769 (diff)
qcacld2.0: Update APIs pci_enable_msi_range for 3.18 support
Beginning 3.16, pci_enable_msi_block is deprecated and encouraged to use the new API - pci_enable_msi_range(). Change-Id: I31dfacc5e851c47fb5f71d72cf83646ce7bfbbad CRs-fixed: 827110
-rw-r--r--CORE/SERVICES/HIF/PCIe/if_pci.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/CORE/SERVICES/HIF/PCIe/if_pci.c b/CORE/SERVICES/HIF/PCIe/if_pci.c
index 4e253e4dc527..0f6346322eba 100644
--- a/CORE/SERVICES/HIF/PCIe/if_pci.c
+++ b/CORE/SERVICES/HIF/PCIe/if_pci.c
@@ -1468,7 +1468,11 @@ hif_pci_configure(struct hif_pci_softc *sc, hif_handle_t *hif_hdl)
int i;
int rv;
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0)) || defined(WITH_BACKPORTS)
+ rv = pci_enable_msi_range(sc->pdev, MSI_NUM_REQUEST, MSI_NUM_REQUEST);
+#else
rv = pci_enable_msi_block(sc->pdev, MSI_NUM_REQUEST);
+#endif
if (rv == 0) { /* successfully allocated all MSI interrupts */
/*