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

From: Linus Walleij

Date: Tue Nov 17 2026 - 16:22:24 EST


On Sat, Nov 7, 2026 at 9: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: Linus Walleij <linusw@xxxxxxxxxx>

Yours,
Linus Walleij