Re: [PATCH 16/16] irqchip/bcm7120-l2: fix parent IRQ count error handling
Florian Fainelli <[email protected]> Tue, 28 Jul 2026 08:57:03 -0700
| Newsgroups | org.kernel.vger.linux-mips,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On 7/14/26 06:24, Haofeng Li wrote: > From: Haofeng Li <[email protected]> > > When platform_irq_count() fails or returns zero, probe reported -ENOMEM > even though no memory allocation failed. Negative values such as > -EPROBE_DEFER were also discarded, which breaks deferred probe. > > Propagate negative errno from platform_irq_count(), and return -EINVAL > only for a zero parent interrupt count. > > Fixes: 3ac268d5ed22 ("irqchip/irq-bcm7120-l2: Switch to IRQCHIP_PLATFORM_DRIVER") > Signed-off-by: Haofeng Li <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> -- Florian