[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMuHMdW3_-3qC99htcUT-R0wTmXuLhLE=Tx5yKUeG-KiD+x3zA@mail.gmail.com>
Date: Fri, 5 Sep 2025 11:39:50 +0200
From: Geert Uytterhoeven <geert@...ux-m68k.org>
To: Biju <biju.das.au@...il.com>
Cc: Linus Walleij <linus.walleij@...aro.org>, Biju Das <biju.das.jz@...renesas.com>,
Lad Prabhakar <prabhakar.mahadev-lad.rj@...renesas.com>, linux-renesas-soc@...r.kernel.org,
linux-gpio@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 1/2] pinctrl: renesas: rzg2l: Fix OEN resume
Hi Biju,
On Sun, 17 Aug 2025 at 16:30, Biju <biju.das.au@...il.com> wrote:
> From: Biju Das <biju.das.jz@...renesas.com>
>
> The write to PFC_OEN register is controlled by the write protect register
> (PWPR). Currently OEN register write in resume() is done without enabling
> the write access in PWPR leading to incorrect operation.
>
> Fixes: cd39805be85b ("pinctrl: renesas: rzg2l: Unify OEN handling across RZ/{G2L,V2H,V2N}")
> Signed-off-by: Biju Das <biju.das.jz@...renesas.com>
Thanks for your patch!
Reviewed-by: Geert Uytterhoeven <geert+renesas@...der.be>
i.e. will queue in renesas-pinctrl for v6.18.
> --- a/drivers/pinctrl/renesas/pinctrl-rzg2l.c
> +++ b/drivers/pinctrl/renesas/pinctrl-rzg2l.c
> @@ -3174,7 +3176,15 @@ static int rzg2l_pinctrl_resume_noirq(struct device *dev)
> }
>
> writeb(cache->qspi, pctrl->base + QSPI);
> + spin_lock_irqsave(&pctrl->lock, flags);
> + if (pctrl->data->hwcfg->oen_pwpr_lock) {
> + pwpr = readb(pctrl->base + regs->pwpr);
> + writeb(pwpr | PWPR_REGWE_B, pctrl->base + regs->pwpr);
> + }
> writeb(cache->oen, pctrl->base + pctrl->data->hwcfg->regs.oen);
> + if (pctrl->data->hwcfg->oen_pwpr_lock)
> + writeb(pwpr & ~PWPR_REGWE_B, pctrl->base + regs->pwpr);
> + spin_unlock_irqrestore(&pctrl->lock, flags);
> for (u8 i = 0; i < 2; i++) {
> if (regs->sd_ch)
> writeb(cache->sd_ch[i], pctrl->base + SD_CH(regs->sd_ch, i));
Would you mind if I moved the spin_*lock* calls inside the if-statements
while applying?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@...ux-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
Powered by blists - more mailing lists