Skip to content

Commit f407dae

Browse files
jgunthorpebjorn-helgaas
authored andcommitted
PCI: mvebu: Return 'unsupported' for Interrupt Line and Interrupt Pin
The emulated bridge does not support interrupts, so it should return the value 0 for Interrupt Line and Interrupt Pin. This indicates that interrupts are not supported. Since Max_Lat and Min_Gnt are also in the same 32-bit word, we return 0 for them, which means "do not care." This corrects an error message from the kernel: pci 0000:00:01.0: of_irq_parse_pci() failed with rc=135 Which is due to the default return of 0xFFFFFFFF indicating that interrupts are supported. The error message regression was caused by 16b84e5 ("of/irq: Create of_irq_parse_and_map_pci() to consolidate arch code.") Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Jason Cooper <jason@lakedaemon.net>
1 parent ecf61c7 commit f407dae

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎drivers/pci/host/pci-mvebu.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,11 @@ static int mvebu_sw_pci_bridge_read(struct mvebu_pcie_port *port,
447447
*value = 0;
448448
break;
449449

450+
case PCI_INTERRUPT_LINE:
451+
/* LINE PIN MIN_GNT MAX_LAT */
452+
*value = 0;
453+
break;
454+
450455
default:
451456
*value = 0xffffffff;
452457
return PCIBIOS_BAD_REGISTER_NUMBER;

0 commit comments

Comments
 (0)