Re: [PATCH 4/5] gpio: brcmstb: don't turn platform_get_irq errors into -ENOENT

From: Florian Fainelli

Date: Tue Nov 10 2026 - 00:00:12 EST




On 11/7/2026 12:12 AM, shao.mingyin@xxxxxxxxxx wrote:
From: Shao Mingyin <shao.mingyin@xxxxxxxxxx>

When the "interrupt-controller" property is present, brcmstb_gpio_probe()
maps any platform_get_irq() failure to -ENOENT. This swallows
-EPROBE_DEFER (the parent interrupt controller may not be probed yet),
so the device never gets retried and the GPIO controller is permanently
unavailable. Return the original error code instead.

Fixes: 19a7b6940b78 ("gpio: brcmstb: Add interrupt and wakeup source support")
Cc: stable@xxxxxxxxxxxxxxx
Signed-off-by: Shao Mingyin <shao.mingyin@xxxxxxxxxx>

Reviewed-by: Florian Fainelli <florian.fainelli@xxxxxxxxxxxx>
--
Florian