Thread (3 messages) 3 messages, 2 authors, 2026-03-04

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

From: Linus Walleij <linusw@kernel.org>
Date: 2026-03-04 09:49:14
Also in: linux-gpio, lkml

Possibly related (same subject, not in this thread)

Hi Jialu,

thanks for your patch!

On Wed, Mar 4, 2026 at 9:48 AM Jialu Xu [off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help