* [PATCH 0/4] Fix missing of_node_put() calls
@ 2025-03-05 16:37 Fabrizio Castro
2025-03-05 16:37 ` [PATCH 1/4] gpio: rcar: Fix missing of_node_put() call Fabrizio Castro
` (4 more replies)
0 siblings, 5 replies; 14+ messages in thread
From: Fabrizio Castro @ 2025-03-05 16:37 UTC (permalink / raw)
To: Linus Walleij, Bartosz Golaszewski, Geert Uytterhoeven
Cc: Fabrizio Castro, Simon Horman, Laurent Pinchart, Biju Das,
Lad Prabhakar, Chris Brandt, Jacopo Mondi, linux-gpio,
linux-kernel, linux-renesas-soc
Dear All,
This series is to fix a missing call to of_node_put() from
some of Renesas pinctrl/gpio drivers.
Cheers,
Fab
Fabrizio Castro (4):
gpio: rcar: Fix missing of_node_put() call
pinctrl: renesas: rzg2l: Fix missing of_node_put() call
pinctrl: renesas: rzv2m: Fix missing of_node_put() call
pinctrl: renesas: rza2: Fix missing of_node_put() call
drivers/gpio/gpio-rcar.c | 7 ++++++-
drivers/pinctrl/renesas/pinctrl-rza2.c | 2 ++
drivers/pinctrl/renesas/pinctrl-rzg2l.c | 2 ++
drivers/pinctrl/renesas/pinctrl-rzv2m.c | 2 ++
4 files changed, 12 insertions(+), 1 deletion(-)
--
2.34.1
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH 1/4] gpio: rcar: Fix missing of_node_put() call
2025-03-05 16:37 [PATCH 0/4] Fix missing of_node_put() calls Fabrizio Castro
@ 2025-03-05 16:37 ` Fabrizio Castro
2025-03-05 21:30 ` Lad, Prabhakar
2025-03-06 14:50 ` Geert Uytterhoeven
2025-03-05 16:37 ` [PATCH 2/4] pinctrl: renesas: rzg2l: " Fabrizio Castro
` (3 subsequent siblings)
4 siblings, 2 replies; 14+ messages in thread
From: Fabrizio Castro @ 2025-03-05 16:37 UTC (permalink / raw)
To: Linus Walleij, Bartosz Golaszewski, Geert Uytterhoeven
Cc: Fabrizio Castro, Simon Horman, Laurent Pinchart, linux-gpio,
linux-kernel, Biju Das, Lad Prabhakar, linux-renesas-soc
of_parse_phandle_with_fixed_args() requires its caller to
call into of_node_put() on the node pointer from the output
structure, but such a call is currently missing.
Call into of_node_put() to rectify that.
Fixes: 159f8a0209af ("gpio-rcar: Add DT support")
Signed-off-by: Fabrizio Castro <fabrizio.castro.jz@renesas.com>
---
drivers/gpio/gpio-rcar.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/gpio/gpio-rcar.c b/drivers/gpio/gpio-rcar.c
index 2ecee3269a0c..7208739cd2d4 100644
--- a/drivers/gpio/gpio-rcar.c
+++ b/drivers/gpio/gpio-rcar.c
@@ -468,7 +468,12 @@ static int gpio_rcar_parse_dt(struct gpio_rcar_priv *p, unsigned int *npins)
p->info = *info;
ret = of_parse_phandle_with_fixed_args(np, "gpio-ranges", 3, 0, &args);
- *npins = ret == 0 ? args.args[2] : RCAR_MAX_GPIO_PER_BANK;
+ if (ret) {
+ *npins = RCAR_MAX_GPIO_PER_BANK;
+ } else {
+ *npins = args.args[2];
+ of_node_put(args.np);
+ }
if (*npins == 0 || *npins > RCAR_MAX_GPIO_PER_BANK) {
dev_warn(p->dev, "Invalid number of gpio lines %u, using %u\n",
--
2.34.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 2/4] pinctrl: renesas: rzg2l: Fix missing of_node_put() call
2025-03-05 16:37 [PATCH 0/4] Fix missing of_node_put() calls Fabrizio Castro
2025-03-05 16:37 ` [PATCH 1/4] gpio: rcar: Fix missing of_node_put() call Fabrizio Castro
@ 2025-03-05 16:37 ` Fabrizio Castro
2025-03-05 21:30 ` Lad, Prabhakar
2025-03-06 14:52 ` Geert Uytterhoeven
2025-03-05 16:37 ` [PATCH 3/4] pinctrl: renesas: rzv2m: " Fabrizio Castro
` (2 subsequent siblings)
4 siblings, 2 replies; 14+ messages in thread
From: Fabrizio Castro @ 2025-03-05 16:37 UTC (permalink / raw)
To: Linus Walleij, Geert Uytterhoeven
Cc: Fabrizio Castro, Lad Prabhakar, Biju Das, linux-renesas-soc,
linux-gpio, linux-kernel
of_parse_phandle_with_fixed_args() requires its caller to
call into of_node_put() on the node pointer from the output
structure, but such a call is currently missing.
Call into of_node_put() to rectify that.
Fixes: c4c4637eb57f ("pinctrl: renesas: Add RZ/G2L pin and gpio controller driver")
Signed-off-by: Fabrizio Castro <fabrizio.castro.jz@renesas.com>
---
drivers/pinctrl/renesas/pinctrl-rzg2l.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/pinctrl/renesas/pinctrl-rzg2l.c b/drivers/pinctrl/renesas/pinctrl-rzg2l.c
index 9280bc37a623..c72e250f4a15 100644
--- a/drivers/pinctrl/renesas/pinctrl-rzg2l.c
+++ b/drivers/pinctrl/renesas/pinctrl-rzg2l.c
@@ -2763,6 +2763,8 @@ static int rzg2l_gpio_register(struct rzg2l_pinctrl *pctrl)
if (ret)
return dev_err_probe(pctrl->dev, ret, "Unable to parse gpio-ranges\n");
+ of_node_put(of_args.np);
+
if (of_args.args[0] != 0 || of_args.args[1] != 0 ||
of_args.args[2] != pctrl->data->n_port_pins)
return dev_err_probe(pctrl->dev, -EINVAL,
--
2.34.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 3/4] pinctrl: renesas: rzv2m: Fix missing of_node_put() call
2025-03-05 16:37 [PATCH 0/4] Fix missing of_node_put() calls Fabrizio Castro
2025-03-05 16:37 ` [PATCH 1/4] gpio: rcar: Fix missing of_node_put() call Fabrizio Castro
2025-03-05 16:37 ` [PATCH 2/4] pinctrl: renesas: rzg2l: " Fabrizio Castro
@ 2025-03-05 16:37 ` Fabrizio Castro
2025-03-05 21:31 ` Lad, Prabhakar
2025-03-06 14:54 ` Geert Uytterhoeven
2025-03-05 16:37 ` [PATCH 4/4] pinctrl: renesas: rza2: " Fabrizio Castro
2025-03-06 14:22 ` (subset) [PATCH 0/4] Fix missing of_node_put() calls Bartosz Golaszewski
4 siblings, 2 replies; 14+ messages in thread
From: Fabrizio Castro @ 2025-03-05 16:37 UTC (permalink / raw)
To: Linus Walleij, Geert Uytterhoeven
Cc: Fabrizio Castro, Lad Prabhakar, linux-renesas-soc, linux-gpio,
linux-kernel, Biju Das
of_parse_phandle_with_fixed_args() requires its caller to
call into of_node_put() on the node pointer from the output
structure, but such a call is currently missing.
Call into of_node_put() to rectify that.
Fixes: 92a9b8252576 ("pinctrl: renesas: Add RZ/V2M pin and gpio controller driver")
Signed-off-by: Fabrizio Castro <fabrizio.castro.jz@renesas.com>
---
drivers/pinctrl/renesas/pinctrl-rzv2m.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/pinctrl/renesas/pinctrl-rzv2m.c b/drivers/pinctrl/renesas/pinctrl-rzv2m.c
index 4062c56619f5..8c7169db4fcc 100644
--- a/drivers/pinctrl/renesas/pinctrl-rzv2m.c
+++ b/drivers/pinctrl/renesas/pinctrl-rzv2m.c
@@ -940,6 +940,8 @@ static int rzv2m_gpio_register(struct rzv2m_pinctrl *pctrl)
return ret;
}
+ of_node_put(of_args.np);
+
if (of_args.args[0] != 0 || of_args.args[1] != 0 ||
of_args.args[2] != pctrl->data->n_port_pins) {
dev_err(pctrl->dev, "gpio-ranges does not match selected SOC\n");
--
2.34.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 4/4] pinctrl: renesas: rza2: Fix missing of_node_put() call
2025-03-05 16:37 [PATCH 0/4] Fix missing of_node_put() calls Fabrizio Castro
` (2 preceding siblings ...)
2025-03-05 16:37 ` [PATCH 3/4] pinctrl: renesas: rzv2m: " Fabrizio Castro
@ 2025-03-05 16:37 ` Fabrizio Castro
2025-03-05 21:32 ` Lad, Prabhakar
2025-03-06 14:55 ` Geert Uytterhoeven
2025-03-06 14:22 ` (subset) [PATCH 0/4] Fix missing of_node_put() calls Bartosz Golaszewski
4 siblings, 2 replies; 14+ messages in thread
From: Fabrizio Castro @ 2025-03-05 16:37 UTC (permalink / raw)
To: Linus Walleij, Geert Uytterhoeven
Cc: Fabrizio Castro, Chris Brandt, Jacopo Mondi, linux-renesas-soc,
linux-gpio, linux-kernel, Biju Das, Lad Prabhakar
of_parse_phandle_with_fixed_args() requires its caller to
call into of_node_put() on the node pointer from the output
structure, but such a call is currently missing.
Call into of_node_put() to rectify that.
Fixes: b59d0e782706 ("pinctrl: Add RZ/A2 pin and gpio controller")
Signed-off-by: Fabrizio Castro <fabrizio.castro.jz@renesas.com>
---
drivers/pinctrl/renesas/pinctrl-rza2.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/pinctrl/renesas/pinctrl-rza2.c b/drivers/pinctrl/renesas/pinctrl-rza2.c
index a654ede01f70..3b5812963850 100644
--- a/drivers/pinctrl/renesas/pinctrl-rza2.c
+++ b/drivers/pinctrl/renesas/pinctrl-rza2.c
@@ -259,6 +259,8 @@ static int rza2_gpio_register(struct rza2_pinctrl_priv *priv)
return ret;
}
+ of_node_put(of_args.np);
+
if ((of_args.args[0] != 0) ||
(of_args.args[1] != 0) ||
(of_args.args[2] != priv->npins)) {
--
2.34.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH 1/4] gpio: rcar: Fix missing of_node_put() call
2025-03-05 16:37 ` [PATCH 1/4] gpio: rcar: Fix missing of_node_put() call Fabrizio Castro
@ 2025-03-05 21:30 ` Lad, Prabhakar
2025-03-06 14:50 ` Geert Uytterhoeven
1 sibling, 0 replies; 14+ messages in thread
From: Lad, Prabhakar @ 2025-03-05 21:30 UTC (permalink / raw)
To: Fabrizio Castro
Cc: Linus Walleij, Bartosz Golaszewski, Geert Uytterhoeven,
Simon Horman, Laurent Pinchart, linux-gpio, linux-kernel,
Biju Das, Lad Prabhakar, linux-renesas-soc
On Wed, Mar 5, 2025 at 4:39 PM Fabrizio Castro
<fabrizio.castro.jz@renesas.com> wrote:
>
> of_parse_phandle_with_fixed_args() requires its caller to
> call into of_node_put() on the node pointer from the output
> structure, but such a call is currently missing.
>
> Call into of_node_put() to rectify that.
>
> Fixes: 159f8a0209af ("gpio-rcar: Add DT support")
> Signed-off-by: Fabrizio Castro <fabrizio.castro.jz@renesas.com>
> ---
> drivers/gpio/gpio-rcar.c | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Cheers,
Prabhakar
> diff --git a/drivers/gpio/gpio-rcar.c b/drivers/gpio/gpio-rcar.c
> index 2ecee3269a0c..7208739cd2d4 100644
> --- a/drivers/gpio/gpio-rcar.c
> +++ b/drivers/gpio/gpio-rcar.c
> @@ -468,7 +468,12 @@ static int gpio_rcar_parse_dt(struct gpio_rcar_priv *p, unsigned int *npins)
> p->info = *info;
>
> ret = of_parse_phandle_with_fixed_args(np, "gpio-ranges", 3, 0, &args);
> - *npins = ret == 0 ? args.args[2] : RCAR_MAX_GPIO_PER_BANK;
> + if (ret) {
> + *npins = RCAR_MAX_GPIO_PER_BANK;
> + } else {
> + *npins = args.args[2];
> + of_node_put(args.np);
> + }
>
> if (*npins == 0 || *npins > RCAR_MAX_GPIO_PER_BANK) {
> dev_warn(p->dev, "Invalid number of gpio lines %u, using %u\n",
> --
> 2.34.1
>
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 2/4] pinctrl: renesas: rzg2l: Fix missing of_node_put() call
2025-03-05 16:37 ` [PATCH 2/4] pinctrl: renesas: rzg2l: " Fabrizio Castro
@ 2025-03-05 21:30 ` Lad, Prabhakar
2025-03-06 14:52 ` Geert Uytterhoeven
1 sibling, 0 replies; 14+ messages in thread
From: Lad, Prabhakar @ 2025-03-05 21:30 UTC (permalink / raw)
To: Fabrizio Castro
Cc: Linus Walleij, Geert Uytterhoeven, Lad Prabhakar, Biju Das,
linux-renesas-soc, linux-gpio, linux-kernel
On Wed, Mar 5, 2025 at 4:39 PM Fabrizio Castro
<fabrizio.castro.jz@renesas.com> wrote:
>
> of_parse_phandle_with_fixed_args() requires its caller to
> call into of_node_put() on the node pointer from the output
> structure, but such a call is currently missing.
>
> Call into of_node_put() to rectify that.
>
> Fixes: c4c4637eb57f ("pinctrl: renesas: Add RZ/G2L pin and gpio controller driver")
> Signed-off-by: Fabrizio Castro <fabrizio.castro.jz@renesas.com>
> ---
> drivers/pinctrl/renesas/pinctrl-rzg2l.c | 2 ++
> 1 file changed, 2 insertions(+)
>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Cheers,
Prabhakar
> diff --git a/drivers/pinctrl/renesas/pinctrl-rzg2l.c b/drivers/pinctrl/renesas/pinctrl-rzg2l.c
> index 9280bc37a623..c72e250f4a15 100644
> --- a/drivers/pinctrl/renesas/pinctrl-rzg2l.c
> +++ b/drivers/pinctrl/renesas/pinctrl-rzg2l.c
> @@ -2763,6 +2763,8 @@ static int rzg2l_gpio_register(struct rzg2l_pinctrl *pctrl)
> if (ret)
> return dev_err_probe(pctrl->dev, ret, "Unable to parse gpio-ranges\n");
>
> + of_node_put(of_args.np);
> +
> if (of_args.args[0] != 0 || of_args.args[1] != 0 ||
> of_args.args[2] != pctrl->data->n_port_pins)
> return dev_err_probe(pctrl->dev, -EINVAL,
> --
> 2.34.1
>
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 3/4] pinctrl: renesas: rzv2m: Fix missing of_node_put() call
2025-03-05 16:37 ` [PATCH 3/4] pinctrl: renesas: rzv2m: " Fabrizio Castro
@ 2025-03-05 21:31 ` Lad, Prabhakar
2025-03-06 14:54 ` Geert Uytterhoeven
1 sibling, 0 replies; 14+ messages in thread
From: Lad, Prabhakar @ 2025-03-05 21:31 UTC (permalink / raw)
To: Fabrizio Castro
Cc: Linus Walleij, Geert Uytterhoeven, Lad Prabhakar,
linux-renesas-soc, linux-gpio, linux-kernel, Biju Das
On Wed, Mar 5, 2025 at 4:42 PM Fabrizio Castro
<fabrizio.castro.jz@renesas.com> wrote:
>
> of_parse_phandle_with_fixed_args() requires its caller to
> call into of_node_put() on the node pointer from the output
> structure, but such a call is currently missing.
>
> Call into of_node_put() to rectify that.
>
> Fixes: 92a9b8252576 ("pinctrl: renesas: Add RZ/V2M pin and gpio controller driver")
> Signed-off-by: Fabrizio Castro <fabrizio.castro.jz@renesas.com>
> ---
> drivers/pinctrl/renesas/pinctrl-rzv2m.c | 2 ++
> 1 file changed, 2 insertions(+)
>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Cheers,
Prabhakar
> diff --git a/drivers/pinctrl/renesas/pinctrl-rzv2m.c b/drivers/pinctrl/renesas/pinctrl-rzv2m.c
> index 4062c56619f5..8c7169db4fcc 100644
> --- a/drivers/pinctrl/renesas/pinctrl-rzv2m.c
> +++ b/drivers/pinctrl/renesas/pinctrl-rzv2m.c
> @@ -940,6 +940,8 @@ static int rzv2m_gpio_register(struct rzv2m_pinctrl *pctrl)
> return ret;
> }
>
> + of_node_put(of_args.np);
> +
> if (of_args.args[0] != 0 || of_args.args[1] != 0 ||
> of_args.args[2] != pctrl->data->n_port_pins) {
> dev_err(pctrl->dev, "gpio-ranges does not match selected SOC\n");
> --
> 2.34.1
>
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 4/4] pinctrl: renesas: rza2: Fix missing of_node_put() call
2025-03-05 16:37 ` [PATCH 4/4] pinctrl: renesas: rza2: " Fabrizio Castro
@ 2025-03-05 21:32 ` Lad, Prabhakar
2025-03-06 14:55 ` Geert Uytterhoeven
1 sibling, 0 replies; 14+ messages in thread
From: Lad, Prabhakar @ 2025-03-05 21:32 UTC (permalink / raw)
To: Fabrizio Castro
Cc: Linus Walleij, Geert Uytterhoeven, Chris Brandt, Jacopo Mondi,
linux-renesas-soc, linux-gpio, linux-kernel, Biju Das,
Lad Prabhakar
On Wed, Mar 5, 2025 at 4:51 PM Fabrizio Castro
<fabrizio.castro.jz@renesas.com> wrote:
>
> of_parse_phandle_with_fixed_args() requires its caller to
> call into of_node_put() on the node pointer from the output
> structure, but such a call is currently missing.
>
> Call into of_node_put() to rectify that.
>
> Fixes: b59d0e782706 ("pinctrl: Add RZ/A2 pin and gpio controller")
> Signed-off-by: Fabrizio Castro <fabrizio.castro.jz@renesas.com>
> ---
> drivers/pinctrl/renesas/pinctrl-rza2.c | 2 ++
> 1 file changed, 2 insertions(+)
>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Cheers,
Prabhakar
> diff --git a/drivers/pinctrl/renesas/pinctrl-rza2.c b/drivers/pinctrl/renesas/pinctrl-rza2.c
> index a654ede01f70..3b5812963850 100644
> --- a/drivers/pinctrl/renesas/pinctrl-rza2.c
> +++ b/drivers/pinctrl/renesas/pinctrl-rza2.c
> @@ -259,6 +259,8 @@ static int rza2_gpio_register(struct rza2_pinctrl_priv *priv)
> return ret;
> }
>
> + of_node_put(of_args.np);
> +
> if ((of_args.args[0] != 0) ||
> (of_args.args[1] != 0) ||
> (of_args.args[2] != priv->npins)) {
> --
> 2.34.1
>
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: (subset) [PATCH 0/4] Fix missing of_node_put() calls
2025-03-05 16:37 [PATCH 0/4] Fix missing of_node_put() calls Fabrizio Castro
` (3 preceding siblings ...)
2025-03-05 16:37 ` [PATCH 4/4] pinctrl: renesas: rza2: " Fabrizio Castro
@ 2025-03-06 14:22 ` Bartosz Golaszewski
4 siblings, 0 replies; 14+ messages in thread
From: Bartosz Golaszewski @ 2025-03-06 14:22 UTC (permalink / raw)
To: Linus Walleij, Bartosz Golaszewski, Geert Uytterhoeven,
Fabrizio Castro
Cc: Bartosz Golaszewski, Simon Horman, Laurent Pinchart, Biju Das,
Lad Prabhakar, Chris Brandt, Jacopo Mondi, linux-gpio,
linux-kernel, linux-renesas-soc
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
On Wed, 05 Mar 2025 16:37:49 +0000, Fabrizio Castro wrote:
> This series is to fix a missing call to of_node_put() from
> some of Renesas pinctrl/gpio drivers.
>
> Cheers,
> Fab
>
> Fabrizio Castro (4):
> gpio: rcar: Fix missing of_node_put() call
> pinctrl: renesas: rzg2l: Fix missing of_node_put() call
> pinctrl: renesas: rzv2m: Fix missing of_node_put() call
> pinctrl: renesas: rza2: Fix missing of_node_put() call
>
> [...]
Applied, thanks!
[1/4] gpio: rcar: Fix missing of_node_put() call
commit: f5aae815b5f7e79460a724af4debfc9abcac0cc3
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 1/4] gpio: rcar: Fix missing of_node_put() call
2025-03-05 16:37 ` [PATCH 1/4] gpio: rcar: Fix missing of_node_put() call Fabrizio Castro
2025-03-05 21:30 ` Lad, Prabhakar
@ 2025-03-06 14:50 ` Geert Uytterhoeven
1 sibling, 0 replies; 14+ messages in thread
From: Geert Uytterhoeven @ 2025-03-06 14:50 UTC (permalink / raw)
To: Fabrizio Castro
Cc: Linus Walleij, Bartosz Golaszewski, Simon Horman,
Laurent Pinchart, linux-gpio, linux-kernel, Biju Das,
Lad Prabhakar, linux-renesas-soc
On Wed, 5 Mar 2025 at 17:38, Fabrizio Castro
<fabrizio.castro.jz@renesas.com> wrote:
> of_parse_phandle_with_fixed_args() requires its caller to
> call into of_node_put() on the node pointer from the output
> structure, but such a call is currently missing.
>
> Call into of_node_put() to rectify that.
>
> Fixes: 159f8a0209af ("gpio-rcar: Add DT support")
> Signed-off-by: Fabrizio Castro <fabrizio.castro.jz@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 2/4] pinctrl: renesas: rzg2l: Fix missing of_node_put() call
2025-03-05 16:37 ` [PATCH 2/4] pinctrl: renesas: rzg2l: " Fabrizio Castro
2025-03-05 21:30 ` Lad, Prabhakar
@ 2025-03-06 14:52 ` Geert Uytterhoeven
1 sibling, 0 replies; 14+ messages in thread
From: Geert Uytterhoeven @ 2025-03-06 14:52 UTC (permalink / raw)
To: Fabrizio Castro
Cc: Linus Walleij, Lad Prabhakar, Biju Das, linux-renesas-soc,
linux-gpio, linux-kernel
On Wed, 5 Mar 2025 at 17:38, Fabrizio Castro
<fabrizio.castro.jz@renesas.com> wrote:
> of_parse_phandle_with_fixed_args() requires its caller to
> call into of_node_put() on the node pointer from the output
> structure, but such a call is currently missing.
>
> Call into of_node_put() to rectify that.
>
> Fixes: c4c4637eb57f ("pinctrl: renesas: Add RZ/G2L pin and gpio controller driver")
> Signed-off-by: Fabrizio Castro <fabrizio.castro.jz@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
i.e. will queue in renesas-pinctrl for v6.15.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 3/4] pinctrl: renesas: rzv2m: Fix missing of_node_put() call
2025-03-05 16:37 ` [PATCH 3/4] pinctrl: renesas: rzv2m: " Fabrizio Castro
2025-03-05 21:31 ` Lad, Prabhakar
@ 2025-03-06 14:54 ` Geert Uytterhoeven
1 sibling, 0 replies; 14+ messages in thread
From: Geert Uytterhoeven @ 2025-03-06 14:54 UTC (permalink / raw)
To: Fabrizio Castro
Cc: Linus Walleij, Lad Prabhakar, linux-renesas-soc, linux-gpio,
linux-kernel, Biju Das
On Wed, 5 Mar 2025 at 17:38, Fabrizio Castro
<fabrizio.castro.jz@renesas.com> wrote:
> of_parse_phandle_with_fixed_args() requires its caller to
> call into of_node_put() on the node pointer from the output
> structure, but such a call is currently missing.
>
> Call into of_node_put() to rectify that.
>
> Fixes: 92a9b8252576 ("pinctrl: renesas: Add RZ/V2M pin and gpio controller driver")
> Signed-off-by: Fabrizio Castro <fabrizio.castro.jz@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
i.e. will queue in renesas-pinctrl for v6.15.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 4/4] pinctrl: renesas: rza2: Fix missing of_node_put() call
2025-03-05 16:37 ` [PATCH 4/4] pinctrl: renesas: rza2: " Fabrizio Castro
2025-03-05 21:32 ` Lad, Prabhakar
@ 2025-03-06 14:55 ` Geert Uytterhoeven
1 sibling, 0 replies; 14+ messages in thread
From: Geert Uytterhoeven @ 2025-03-06 14:55 UTC (permalink / raw)
To: Fabrizio Castro
Cc: Linus Walleij, Chris Brandt, Jacopo Mondi, linux-renesas-soc,
linux-gpio, linux-kernel, Biju Das, Lad Prabhakar
On Wed, 5 Mar 2025 at 17:38, Fabrizio Castro
<fabrizio.castro.jz@renesas.com> wrote:
> of_parse_phandle_with_fixed_args() requires its caller to
> call into of_node_put() on the node pointer from the output
> structure, but such a call is currently missing.
>
> Call into of_node_put() to rectify that.
>
> Fixes: b59d0e782706 ("pinctrl: Add RZ/A2 pin and gpio controller")
> Signed-off-by: Fabrizio Castro <fabrizio.castro.jz@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
i.e. will queue in renesas-pinctrl for v6.15.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2025-03-06 14:55 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-05 16:37 [PATCH 0/4] Fix missing of_node_put() calls Fabrizio Castro
2025-03-05 16:37 ` [PATCH 1/4] gpio: rcar: Fix missing of_node_put() call Fabrizio Castro
2025-03-05 21:30 ` Lad, Prabhakar
2025-03-06 14:50 ` Geert Uytterhoeven
2025-03-05 16:37 ` [PATCH 2/4] pinctrl: renesas: rzg2l: " Fabrizio Castro
2025-03-05 21:30 ` Lad, Prabhakar
2025-03-06 14:52 ` Geert Uytterhoeven
2025-03-05 16:37 ` [PATCH 3/4] pinctrl: renesas: rzv2m: " Fabrizio Castro
2025-03-05 21:31 ` Lad, Prabhakar
2025-03-06 14:54 ` Geert Uytterhoeven
2025-03-05 16:37 ` [PATCH 4/4] pinctrl: renesas: rza2: " Fabrizio Castro
2025-03-05 21:32 ` Lad, Prabhakar
2025-03-06 14:55 ` Geert Uytterhoeven
2025-03-06 14:22 ` (subset) [PATCH 0/4] Fix missing of_node_put() calls Bartosz Golaszewski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).