All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Petr Vorel" <petr.vorel@gmail.com>
Cc: linux-gpio@vger.kernel.org
Subject: Re: [PATCH 2/2] pinctrl: qcom: Add SM7250 pinctrl driver
Date: Fri, 04 Dec 2026 14:43:36 +0000	[thread overview]
Message-ID: <sashiko-outbox-250003@kernel.org> (raw)
In-Reply-To: <20261204141059.90918-3-petr.vorel@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] pinctrl: qcom: sm7250: ufs_reset excluded from ngpios at index
  153
--

commit 1f625cca71706d17d8ae4461ad1bcc018fb45eeb
Author: Petr Vorel <petr.vorel@gmail.com>

pinctrl: qcom: Add SM7250 pinctrl driver

This commit adds the Qualcomm SM7250 TLMM pin controller driver, defining
146 GPIOs across three tiles along with the SDC and UFS reset pins.

> diff --git a/drivers/pinctrl/qcom/pinctrl-sm7250.c b/drivers/pinctrl/qcom/pinctrl-sm7250.c
> new file mode 100644
> index 0000000000000..35bd8aaeb99d0
> --- /dev/null
> +++ b/drivers/pinctrl/qcom/pinctrl-sm7250.c
> @@ -0,0 +1,1375 @@

[ ... ]

> +	[145] = PINGROUP(145, WEST, _, _, _, _, _, _, _, _, _),
> +	[146] = SDC_QDSD_PINGROUP(sdc1_rclk, WEST, 0xb8000, 15, 0),
> +	[147] = SDC_QDSD_PINGROUP(sdc1_clk, WEST, 0xb8000, 13, 6),
> +	[148] = SDC_QDSD_PINGROUP(sdc1_cmd, WEST, 0xb8000, 11, 3),
> +	[149] = SDC_QDSD_PINGROUP(sdc1_data, WEST, 0xb8000, 9, 0),
> +	[150] = SDC_QDSD_PINGROUP(sdc2_clk, SOUTH, 0xb7000, 14, 6),
> +	[151] = SDC_QDSD_PINGROUP(sdc2_cmd, SOUTH, 0xb7000, 11, 3),
> +	[152] = SDC_QDSD_PINGROUP(sdc2_data, SOUTH, 0xb7000, 9, 0),
> +	[153] = UFS_RESET(ufs_reset, 0xbc000),
> +};

[ ... ]

> +static const struct msm_pinctrl_soc_data sm7250_tlmm = {
> +	.pins = sm7250_pins,
> +	.npins = ARRAY_SIZE(sm7250_pins),
> +	.functions = sm7250_functions,
> +	.nfunctions = ARRAY_SIZE(sm7250_functions),
> +	.groups = sm7250_groups,
> +	.ngroups = ARRAY_SIZE(sm7250_groups),
> +	.ngpios = 146,

[Severity: High]
Should ufs_reset be placed at index 146 with ngpios set to 147?

msm_gpio_init() only exposes offsets 0..ngpios - 1 to gpiolib, so placing
ufs_reset at index 153 after the non-GPIO SDC groups makes it unreachable
by ufs_qcom_init(), which requests the reset pin via gpiolib.  Reordering
it later would break DT ABI once SM7250 device trees are merged.

Moving ufs_reset to index 146 (shifting sdc1_rclk..sdc2_data to 147..153
in sm7250_pins[], *_pins[], and sm7250_groups[]) and setting .ngpios = 147
would match other Qualcomm TLMM drivers such as pinctrl-sm7150.c.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204141059.90918-1-petr.vorel@gmail.com?part=2

      reply	other threads:[~2026-12-04 14:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 14:10 [PATCH 0/2] SM7250 pinctrl driver Petr Vorel
2026-12-04 14:10 ` [PATCH 1/2] dt-bindings: pinctrl: qcom: Add SM7250 TLMM Petr Vorel
2026-12-04 14:31   ` sashiko-bot
2026-12-05 13:19   ` Krzysztof Kozlowski
2026-12-04 14:10 ` [PATCH 2/2] pinctrl: qcom: Add SM7250 pinctrl driver Petr Vorel
2026-12-04 14:43   ` sashiko-bot [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=sashiko-outbox-250003@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=petr.vorel@gmail.com \
    --cc=sashiko-reviews@lists.linux.dev \
    /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.