Re: [PATCH v2 1/2] w5100: restore GPIO-based link detection

From: Arnd Bergmann

Date: Tue Aug 04 2026 - 14:47:24 EST


On Tue, Aug 4, 2026, at 19:40, Arthur Crépin Leblond wrote:
> Commit dacf281771a9 ("w5100: remove unused gpio link detection")
> dropped the link_gpio/link_irq handling on the grounds that no
> devicetree user passed a "link" GPIO at the time.
>
> This isn't a plain revert of that removal. The link GPIO is now
> bound from the device tree link-gpios property using the resource
> managed GPIO descriptors.
>
> The link IRQ is also requested with devm_request_threaded_irq()
> instead of request_any_context_irq(), so it is released automatically
> on driver removal or probe failure.
>
> Signed-off-by: Arthur Crépin Leblond <arthur@xxxxxxxxxxxxx>

Reviewed-by: Arnd Bergmann <arnd@xxxxxxxx>