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:
Michal Meloun 2016-05-29 07:39:56 +00:00
parent 9a81299340
commit 74bf497550

View File

@ -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) {