Re: [PATCH v2 2/2] watchdog: stm32_iwdg: Propagate errors from optional IRQ lookup

From: Guenter Roeck

Date: Sun Aug 09 2026 - 11:07:28 EST


On Fri, Aug 07, 2026 at 03:04:47PM +0700, 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 IRQ is available, while other errors should be propagated.
>
> Propagate errors such as -EPROBE_DEFER and -EINVAL instead of continuing
> probe without the IRQ.
>
> Signed-off-by: bui duc phuc <phucduc.bui@xxxxxxxxx>

Applie.

Thanks,
Guenter