devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Rob Herring (Arm)" <robh@kernel.org>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org,
	wsa+renesas@sang-engineering.com
Subject: Re: [PATCH] dt-bindings: pinctrl: renesas: Allow power-source
Date: Mon, 21 Sep 2026 23:34:33 +0000	[thread overview]
Message-ID: <20260921233433.D81351F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260921232551.3129244-1-robh@kernel.org>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] pinctrl: rzv2m: driver rejects power-source leading to silent probe failure
--

commit d9bace34984ccb180f68f3bb012d8d6364147a69
Author: Rob Herring (Arm) <robh@kernel.org>

dt-bindings: pinctrl: renesas: Allow power-source

This commit updates the rzv2m-pinctrl device tree binding to allow the
power-source property. It officially permits configuring 1800 mV and 3300 mV
I/O voltages.

> diff --git a/Documentation/devicetree/bindings/pinctrl/renesas,rzv2m-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/renesas,rzv2m-pinctrl.yaml
> index 88b2fa5e684d8..f24d05136f197 100644
> --- a/Documentation/devicetree/bindings/pinctrl/renesas,rzv2m-pinctrl.yaml
> +++ b/Documentation/devicetree/bindings/pinctrl/renesas,rzv2m-pinctrl.yaml
> @@ -73,6 +73,9 @@ additionalProperties:
>          bias-disable: true
>          bias-pull-down: true
>          bias-pull-up: true
> +        power-source:
> +          description: I/O voltage in millivolts.
> +          enum: [ 1800, 3300 ]

[Severity: High]
Does this cause silent probe failures for devices using this newly allowed
property?

By adding power-source here, the device tree can now officially configure
PIN_CONFIG_POWER_SOURCE, but the driver actively rejects this configuration:

drivers/pinctrl/renesas/pinctrl-rzv2m.c:rzv2m_pinctrl_pinconf_set() {
    ...
		case PIN_CONFIG_SLEW_RATE: {
			...
			break;
		}

		default:
			return -ENOTSUPP;
		}
	}
    ...
}

When the device probes, pinctrl_bind_pins() attempts to apply the state, and
this driver callback falls through to the default case returning -ENOTSUPP.

The pinctrl core (pinconf_apply_setting() -> pinctrl_select_state()) treats
this as an error, un-applies the mux setting, and propagates -ENOTSUPP.
Finally, pinctrl_bind_pins() ignores the error, frees the device's pin
container, and allows probing to continue without configuring any pins.

Will this leave the device with unconfigured pins, resulting in successfully
probed but non-functional peripherals?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260921232551.3129244-1-robh@kernel.org?part=1

  reply	other threads:[~2026-09-21 23:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-21 23:25 [PATCH] dt-bindings: pinctrl: renesas: Allow power-source Rob Herring (Arm)
2026-09-21 23:34 ` sashiko-bot [this message]
2026-09-22 10:08 ` Fabrizio Castro
2026-09-22 13:18 ` Geert Uytterhoeven
2026-09-23 15:15   ` Rob Herring
2026-09-24  7:24   ` Linus Walleij
2026-09-24  9:38     ` Geert Uytterhoeven

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=20260921233433.D81351F000FF@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=wsa+renesas@sang-engineering.com \
    /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 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).