Re: [PATCH 2/3] nfc: nfcmrvl: convert to gpio descriptors

From: Linus Walleij

Date: Wed Mar 04 2026 - 04:54:19 EST


Hi Jialu,

thanks for your patch!

On Wed, Mar 4, 2026 at 9:48 AM Jialu Xu <xujialu@xxxxxxxxx> wrote:

> + priv->config.reset_gpio =
> + devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW);
(...)
> - reset_n_io = of_get_named_gpio(node, "reset-n-io", 0);

This isn't gonna work, sadly. The property is named "reset-n-io"
in the device tree, not "reset-gpios".

To handle this, add code to drivers/gpio/gpiolib-of.c in the
of_find_gpio_rename() function to make it pretend this
custom property is handled as "reset-gpios".

Yours,
Linus Walleij