[PATCH 16/16] irqchip/bcm7120-l2: fix parent IRQ count error handling

Florian Fainelli florian.fainelli at broadcom.com
Tue Jul 28 08:57:03 PDT 2026


On 7/14/26 06:24, Haofeng Li wrote:
> From: Haofeng Li <lihaofeng at kylinos.cn>
> 
> 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 at kylinos.cn>

Reviewed-by: Florian Fainelli <florian.fainelli at broadcom.com>
-- 
Florian




More information about the linux-arm-kernel mailing list