From: "Jernej Škrabec" <jernej.skrabec@gmail.com>
To: Alastair D'Silva <alastair@d-silva.org>,
Linus Walleij <linusw@kernel.org>, Chen-Yu Tsai <wens@kernel.org>,
Samuel Holland <samuel@sholland.org>,
Andre Przywara <andre.przywara@arm.com>
Cc: linux-gpio@vger.kernel.org, linux-sunxi@lists.linux.dev,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] pinctrl: sunxi: Drop unused parameter from sunxi_grp_config_reg()
Date: Thu, 26 Nov 2026 18:35:47 +0100 [thread overview]
Message-ID: <AalbXD-rTNOJWAc97z7puQ@gmail.com> (raw)
In-Reply-To: <0defdc40-a96c-4df3-aadf-3c3db3c48b7d@arm.com>
Dne četrtek, 26. november 2026 ob 13:02:59 Srednjeevropski standardni čas je Andre Przywara napisal(a):
> Hi,
>
> On 11/26/26 11:49, Alastair D'Silva wrote:
> > sunxi_grp_config_reg() takes a pctl parameter that is never used.
> > Drop it to match the original signature.
>
> Ah yeah, looks like a development artefact. It's indeed not needed, so
> changing it back to where it was makes complete sense.
>
> > Fixes: 8b367fc08be4 ("pinctrl: sunxi: refactor IRQ register accessors")
> > Assisted-by: LLM
This tag is deprecated and should be dropped in all patches.
Best regards,
Jernej
> > Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
>
> Reviewed-by: Andre Przywara <andre.przywara@arm.com>
>
> Cheers,
> Andre
>
> > ---
> > drivers/pinctrl/sunxi/pinctrl-sunxi.c | 5 ++---
> > drivers/pinctrl/sunxi/pinctrl-sunxi.h | 3 +--
> > 2 files changed, 3 insertions(+), 5 deletions(-)
> >
> > diff --git a/drivers/pinctrl/sunxi/pinctrl-sunxi.c b/drivers/pinctrl/sunxi/pinctrl-sunxi.c
> > index bf4ec4665e2b..d30a562315aa 100644
> > --- a/drivers/pinctrl/sunxi/pinctrl-sunxi.c
> > +++ b/drivers/pinctrl/sunxi/pinctrl-sunxi.c
> > @@ -763,10 +763,9 @@ static int sunxi_pinctrl_set_io_bias_cfg(struct sunxi_pinctrl *pctl,
> > else
> > val = 0xD; /* 3.3V */
> >
> > - reg = readl(pctl->membase + sunxi_grp_config_reg(pctl, pin));
> > + reg = readl(pctl->membase + sunxi_grp_config_reg(pin));
> > reg &= ~IO_BIAS_MASK;
> > - writel(reg | val, pctl->membase +
> > - sunxi_grp_config_reg(pctl, pin));
> > + writel(reg | val, pctl->membase + sunxi_grp_config_reg(pin));
> > return 0;
> > case BIAS_VOLTAGE_PIO_POW_MODE_CTL_INV:
> > inverted = true;
> > diff --git a/drivers/pinctrl/sunxi/pinctrl-sunxi.h b/drivers/pinctrl/sunxi/pinctrl-sunxi.h
> > index 7c2f29e75519..3060cef3705d 100644
> > --- a/drivers/pinctrl/sunxi/pinctrl-sunxi.h
> > +++ b/drivers/pinctrl/sunxi/pinctrl-sunxi.h
> > @@ -328,8 +328,7 @@ static inline u32 sunxi_irq_status_offset(u16 irq)
> > return irq_num * IRQ_STATUS_IRQ_BITS;
> > }
> >
> > -static inline u32 sunxi_grp_config_reg(const struct sunxi_pinctrl *pctl,
> > - u16 pin)
> > +static inline u32 sunxi_grp_config_reg(u16 pin)
> > {
> > u8 bank = pin / PINS_PER_BANK;
> >
>
>
prev parent reply other threads:[~2026-11-26 17:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 10:49 [PATCH] pinctrl: sunxi: Drop unused parameter from sunxi_grp_config_reg() Alastair D'Silva
2026-11-26 12:02 ` Andre Przywara
2026-11-26 17:35 ` Jernej Škrabec [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AalbXD-rTNOJWAc97z7puQ@gmail.com \
--to=jernej.skrabec@gmail.com \
--cc=alastair@d-silva.org \
--cc=andre.przywara@arm.com \
--cc=linusw@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=samuel@sholland.org \
--cc=wens@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.