Commit 5ad6867c authored by Alexander Gordeev's avatar Alexander Gordeev Committed by Kalle Valo

ath10k: Use pci_enable_msi_range()

As result deprecation of MSI-X/MSI enablement functions
pci_enable_msix() and pci_enable_msi_block() all drivers
using these two interfaces need to be updated to use the
new pci_enable_msi_range() and pci_enable_msix_range()
interfaces.
Signed-off-by: default avatarAlexander Gordeev <agordeev@redhat.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent bb8b621a
...@@ -2529,8 +2529,9 @@ static int ath10k_pci_init_irq(struct ath10k *ar) ...@@ -2529,8 +2529,9 @@ static int ath10k_pci_init_irq(struct ath10k *ar)
/* Try MSI-X */ /* Try MSI-X */
if (ath10k_pci_irq_mode == ATH10K_PCI_IRQ_AUTO && msix_supported) { if (ath10k_pci_irq_mode == ATH10K_PCI_IRQ_AUTO && msix_supported) {
ar_pci->num_msi_intrs = MSI_NUM_REQUEST; ar_pci->num_msi_intrs = MSI_NUM_REQUEST;
ret = pci_enable_msi_block(ar_pci->pdev, ar_pci->num_msi_intrs); ret = pci_enable_msi_range(ar_pci->pdev, ar_pci->num_msi_intrs,
if (ret == 0) ar_pci->num_msi_intrs);
if (ret > 0)
return 0; return 0;
/* fall-through */ /* fall-through */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment