All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Gary Wang" <is0124@gmail.com>
Cc: linux-gpio@vger.kernel.org
Subject: Re: [PATCH 5/5] pinctrl: upboard: add device id INTC1055 & INTC1057 & INTC105E based UP boards support
Date: Mon, 23 Nov 2026 15:28:29 +0000	[thread overview]
Message-ID: <sashiko-outbox-229563@kernel.org> (raw)
In-Reply-To: <20261123-upboard-pinctrl-add-intc1057-intc105e-support-v1-5-f2322a91686d@gmail.com>

Thank you for your contribution! Sashiko AI review found 3 potential
issues to consider:
- [High] pinctrl: upboard: missing Signed-off-by trailer in commit
  message
- [High] pinctrl: upboard: wrong function for ish_uart_grp in
  pinctrl_map_upsadlp
- [High] pinctrl: upboard: wrong functions for ish_i2c groups in
  pinctrl_map_upnadln
--

commit c65242f8e95e0139e8717628a668ae12feb887dd
Author: Gary Wang <is0124@gmail.com>

> pinctrl: upboard: add device id INTC1055 & INTC1057 & INTC105E based UP boards support
>
> Add support "UP Xtreme ARL","UP Xtreme i14","UP Squared Pro 7000",
> "UP Squared i12","UP 7000" and I2C/PWM/UART/SPI pins mapping data.

[Severity: High]
The commit message is missing a Signed-off-by: trailer.

> diff --git a/drivers/pinctrl/pinctrl-upboard.c b/drivers/pinctrl/pinctrl-upboard.c
> index 66c1c3e3bfe08..232678fb811ec 100644
> --- a/drivers/pinctrl/pinctrl-upboard.c
> +++ b/drivers/pinctrl/pinctrl-upboard.c
> @@ -930,9 +930,61 @@ static const struct pinctrl_map pinctrl_map_adl[] = {
>  	PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1055:00", "ssp2_grp", "ssp2"),
>  };
>  
> -static const struct upboard_pinctrl_map upboard_pinctrl_map_adl = {
> -	.maps = &pinctrl_map_adl[0],
> -	.nmaps = ARRAY_SIZE(pinctrl_map_adl),
> +static const struct upboard_pinctrl_map upboard_pinctrl_map_upxadlp = {
> +	.maps = &pinctrl_map_upxadlp[0],
> +	.nmaps = ARRAY_SIZE(pinctrl_map_upxadlp),
> +};
> +
> +static const struct pinctrl_map pinctrl_map_upsadlp[] = {
> +	PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1055:00", "i2c0_grp", "i2c0"),
> +	PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1055:00", "i2c1_grp", "i2c1"),
> +	PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1055:00", "pwm0_grp", "pwm0"),
> +	PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1055:00", "ish_uart_grp", "uart1"),

[Severity: High]
Should the function for "ish_uart_grp" in pinctrl_map_upsadlp[] be
"ish_uart" instead of "uart1"?

On INTC1055 (tgllp_functions in drivers/pinctrl/intel/pinctrl-tigerlake.c),
"uart1" only contains "uart1_grp", while "ish_uart_grp" belongs to
"ish_uart".  When upboard_pinctrl_probe() calls
devm_pinctrl_get_select_default() on UPS-ADLP01, pinmux_map_to_setting()
will reject this mapping with -EINVAL and fail the probe.

> +	PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1055:00", "ssp2_grp", "ssp2"),
> +};
> +
> +static const struct upboard_pinctrl_map upboard_pinctrl_map_upsadlp = {
> +	.maps = &pinctrl_map_upsadlp[0],
> +	.nmaps = ARRAY_SIZE(pinctrl_map_upsadlp),
> +};
> +
> +static const struct pinctrl_map pinctrl_map_upadln[] = {
> +	PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1057:00", "i2c0_grp", "i2c0"),
> +	PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1057:00", "i2c1_grp", "i2c1"),
> +	PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1057:00", "pwm0_grp", "pwm0"),
> +	PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1057:00", "uart0_grp", "uart0"),
> +	PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1057:00", "ish_spi_grp", "ish_spi"),
> +};
> +
> +static const struct upboard_pinctrl_map upboard_pinctrl_map_upadln = {
> +	.maps = &pinctrl_map_upadln[0],
> +	.nmaps = ARRAY_SIZE(pinctrl_map_upadln),
> +};
> +
> +static const struct pinctrl_map pinctrl_map_upnadln[] = {
> +	PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1057:00", "ish_i2c0_grp", "i2c0"),
> +	PIN_MAP_MUX_GROUP_DEFAULT("upboard-pinctrl", "INTC1057:00", "ish_i2c1_grp", "i2c1"),

[Severity: High]
Should "ish_i2c0_grp" and "ish_i2c1_grp" in pinctrl_map_upnadln[] map to
functions "ish_i2c0" and "ish_i2c1" instead of "i2c0" and "i2c1"?

On INTC1057 (adln_functions in drivers/pinctrl/intel/pinctrl-alderlake.c),
"i2c0" and "i2c1" only contain "i2c0_grp" and "i2c1_grp", while
"ish_i2c0_grp" and "ish_i2c1_grp" belong to "ish_i2c0" and "ish_i2c1".
Because the groups do not match the functions, pinmux_map_to_setting()
returns -EINVAL and causes upboard_pinctrl_probe() to fail on UPN-ADLN01.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261123-upboard-pinctrl-add-intc1057-intc105e-support-v1-0-f2322a91686d@gmail.com?part=5

  reply	other threads:[~2026-11-23 15:28 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 15:16 [PATCH 0/5] upboard pinctrl support for device id INTC1055 & INTC1057 & INTC105E Gary Wang
2026-11-23 15:16 ` [PATCH 1/5] pinctrl: tigerlake: add ish_uart groups and functions for INTC1055 Gary Wang
2026-11-23 15:25   ` sashiko-bot
2026-11-23 15:16 ` [PATCH 2/5] pinctrl: alderlake: add some groups and functions for INTC1057 Gary Wang
2026-11-23 15:22   ` sashiko-bot
2026-11-23 15:16 ` [PATCH 3/5] pinctrl: meteorlake: add some groups and functions for INTC105E Gary Wang
2026-11-23 15:21   ` sashiko-bot
2026-11-23 15:16 ` [PATCH 4/5] pinctrl: upboard: fix I2C pinmux-select set CPLD GPIO OUT not function mode Gary Wang
2026-11-23 15:26   ` sashiko-bot
2026-11-23 20:01   ` Andy Shevchenko
2026-11-23 20:39     ` GaryWang
2026-12-01  8:44       ` Linus Walleij
2026-11-24  9:17   ` Thomas Richard
2026-11-24 10:18     ` GaryWang
2026-11-23 15:16 ` [PATCH 5/5] pinctrl: upboard: add device id INTC1055 & INTC1057 & INTC105E based UP boards support Gary Wang
2026-11-23 15:28   ` sashiko-bot [this message]
2026-11-23 19:58 ` [PATCH 0/5] upboard pinctrl support for device id INTC1055 & INTC1057 & INTC105E Andy Shevchenko
2026-11-23 19:59   ` Andy Shevchenko

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-229563@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=is0124@gmail.com \
    --cc=linux-gpio@vger.kernel.org \
    --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.