Re: [PATCH v2 1/2] w5100: restore GPIO-based link detection
"Arnd Bergmann" <[email protected]> Tue, 04 Aug 2026 20:44:16 +0200
| Newsgroups | gmane.linux.network,gmane.linux.drivers.devicetree,gmane.linux.kernel |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]>
Reviewed-by: Arnd Bergmann <[email protected]>