Enable MSI-X if the endpoint supports.
Unified · Split
| @@ -1004,7 +1004,7 @@ static int mhi_pci_get_irqs(struct mhi_controller *mhi_cntrl, · 1003 unmodified lines | ||
| 1004 | 1004 | */ |
| 1005 | 1005 | mhi_cntrl->nr_irqs = 1 + mhi_cntrl_config->num_events; |
| 1006 | 1006 | |
| 1007 | − nr_vectors = pci_alloc_irq_vectors(pdev, 1, mhi_cntrl->nr_irqs, PCI_IRQ_MSI); | |
| 1007 | + nr_vectors = pci_alloc_irq_vectors(pdev, 1, mhi_cntrl->nr_irqs, PCI_IRQ_MSIX | PCI_IRQ_MSI); | |
| 1008 | 1008 | if (nr_vectors < 0) { |
| 1009 | 1009 | dev_err(&pdev->dev, "Error allocating MSI vectors %d\n", |
| 1010 | 1010 | nr_vectors); |