ARM GIC: Allow to setup interrupt without configuration data.
In some cases, like for PCI devices, only interrupt numbers are enumerated from HW. In this case, use INTR_foo_CONFORM as level and trigger values.
This commit is contained in:
parent
9a81299340
commit
74bf497550
@ -1128,8 +1128,11 @@ arm_gic_setup_intr(device_t dev, struct intr_irqsrc *isrc,
|
||||
|
||||
if (gi->gi_irq != irq)
|
||||
return (EINVAL);
|
||||
} else
|
||||
return (ENOTSUP);
|
||||
} else {
|
||||
irq = gi->gi_irq;
|
||||
pol = INTR_POLARITY_CONFORM;
|
||||
trig = INTR_TRIGGER_CONFORM;
|
||||
}
|
||||
|
||||
/* Compare config if this is not first setup. */
|
||||
if (isrc->isrc_handlers != 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user