mirror of
https://github.com/opnsense/src.git
synced 2026-04-25 08:07:28 -04:00
Increase interrupt cells in generic_pcie_fdt_route_interrupt
ARM GIC specification in device trees use 3 cells, so the current limit of 2 causes the last cell to be dropped. This in turn can cause the interrupt polarity and trigger settings to be incorrect. Increase the limit to 4 which should handle all reasonable cases. This fixes issues seen in QEMU when registering PCI interrupts.
This commit is contained in:
parent
8a030e9c6e
commit
7d9082cafa
1 changed files with 1 additions and 1 deletions
|
|
@ -269,7 +269,7 @@ generic_pcie_fdt_route_interrupt(device_t bus, device_t dev, int pin)
|
|||
{
|
||||
struct generic_pcie_fdt_softc *sc;
|
||||
struct ofw_pci_register reg;
|
||||
uint32_t pintr, mintr[2];
|
||||
uint32_t pintr, mintr[4];
|
||||
phandle_t iparent;
|
||||
int intrcells;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue