[PATCH 2/3] irqchip: gic-v2: Report failures in gic_irq_domain_alloc

2017-07-04 Thread Suzuki K Poulose
If the GIC cannot map an IRQ via irq_domain_ops->alloc(), it doesn't return an error code. This can cause a problem with drivers, where it thinks it has successfully got an IRQ for the device, but requesting the same ends up failure with -ENOSYS (as the IRQ's chip is not set). Fixes: commit

[PATCH 2/3] irqchip: gic-v2: Report failures in gic_irq_domain_alloc

2017-07-04 Thread Suzuki K Poulose
If the GIC cannot map an IRQ via irq_domain_ops->alloc(), it doesn't return an error code. This can cause a problem with drivers, where it thinks it has successfully got an IRQ for the device, but requesting the same ends up failure with -ENOSYS (as the IRQ's chip is not set). Fixes: commit