Re: [PATCH 16/16] irqchip/bcm7120-l2: fix parent IRQ count error handling
From: Florian Fainelli
Date: Tue Jul 28 2026 - 12:50:16 EST
On 7/14/26 06:24, Haofeng Li wrote:
From: Haofeng Li <lihaofeng@xxxxxxxxxx>
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 <lihaofeng@xxxxxxxxxx>
Reviewed-by: Florian Fainelli <florian.fainelli@xxxxxxxxxxxx>
--
Florian