]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/gic-v2: Report failures in gic_irq_domain_alloc
authorSuzuki K Poulose <suzuki.poulose@arm.com>
Tue, 4 Jul 2017 09:56:34 +0000 (10:56 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Tue, 4 Jul 2017 10:11:25 +0000 (11:11 +0100)
commit64124c2fdc4b0ff4afe5869a8ae74a3ed5270132
tree84210caf9ef36002a361f93a720073789e8be035
parent735aefd23bbd04f87bc35c4d0344379ab7c4fb9e
irqchip/gic-v2: Report failures in gic_irq_domain_alloc

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 b02292cf16d36 ("irqchip: gic: Support hierarchy irq domain.")
Cc: Yingjoe Chen <yingjoe.chen@mediatek.com>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-gic.c