Re: [PATCH 1/4] gpio: realtek-otto: Handle errors from optional IRQ lookup
From: Linus Walleij
Date: Mon Sep 14 2026 - 08:04:27 EST
On Fri, Aug 14, 2026 at 6:30 AM <phucduc.bui@xxxxxxxxx> wrote:
> From: bui duc phuc <phucduc.bui@xxxxxxxxx>
>
> platform_get_irq_optional() returns a positive IRQ number on success or
> a negative error code on failure. For an optional IRQ, -ENXIO indicates
> that no optional IRQ is available. Other errors, such as -EPROBE_DEFER
> and -EINVAL, should be propagated so that the caller can handle them
> appropriately.
>
> Propagate negative errors other than -ENXIO.
>
> Signed-off-by: bui duc phuc <phucduc.bui@xxxxxxxxx>
Looks good to me.
Reviewed-by: Linus Walleij <linusw@xxxxxxxxxx>
Yours,
Linus Walleij