Skip to content

Commit a384c89

Browse files
Alexander Gordeevbjorn-helgaas
authored andcommitted
s390/PCI: Fix single MSI only check
Multiple MSIs have never been supported on s390 architecture, but the platform code fails to report single MSI only. Signed-off-by: Alexander Gordeev <agordeev@redhat.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent 1c51b50 commit a384c89

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/s390/pci/pci.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,8 @@ int arch_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type)
409409

410410
if (type != PCI_CAP_ID_MSIX && type != PCI_CAP_ID_MSI)
411411
return -EINVAL;
412+
if (type == PCI_CAP_ID_MSI && nvec > 1)
413+
return 1;
412414
msi_vecs = min(nvec, ZPCI_MSI_VEC_MAX);
413415
msi_vecs = min_t(unsigned int, msi_vecs, CONFIG_PCI_NR_MSI);
414416

0 commit comments

Comments
 (0)