Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Daniel Palmer" <daniel@thingy.jp>
Cc: conor+dt@kernel.org, robh@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 7/8] ARM: dts: mstar: sbc2d06: Add regulators
Date: Mon, 13 Jul 2026 11:08:05 +0000	[thread overview]
Message-ID: <20260713110806.320D91F00A3A@smtp.kernel.org> (raw)
In-Reply-To: <20260713105950.1346962-8-daniel@thingy.jp>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] The `vcc_sd` and `reg_vcc_wifi` fixed regulators specify `GPIO_ACTIVE_HIGH` but omit the `enable-active-high` property, causing their GPIO polarity to be incorrectly forced to active-low.
--

--- Patch [7]: [PATCH 7/8] ARM: dts: mstar: sbc2d06: Add regulators ---
commit 9f0e98cb27cc735c61124ee041d094826dabd5cf
Author: Daniel Palmer <daniel@0x0f.com>

ARM: dts: mstar: sbc2d06: Add regulators

This commit adds the board's fixed regulators.

> diff --git a/arch/arm/boot/dts/sigmastar/mstar-infinity2m-ssd202d-wirelesstag-ido-sbc2d06-v1b-22w.dts b/arch/arm/boot/dts/sigmastar/mstar-infinity2m-ssd202d-wirelesstag-ido-sbc2d06-v1b-22w.dts
> index b15c40762bc0a..8dbff5e53e5f2 100644
> --- a/arch/arm/boot/dts/sigmastar/mstar-infinity2m-ssd202d-wirelesstag-ido-sbc2d06-v1b-22w.dts
> +++ b/arch/arm/boot/dts/sigmastar/mstar-infinity2m-ssd202d-wirelesstag-ido-sbc2d06-v1b-22w.dts

[ ... ]

> +	vcc_sd: regulator-vcc-sd {
> +		compatible = "regulator-fixed";
> +		regulator-name = "vcc_sd";
> +		regulator-min-microvolt = <3300000>;
> +		regulator-max-microvolt = <3300000>;
> +		gpio = <&gpio SSD20XD_GPIO_GPIO90 GPIO_ACTIVE_HIGH>;
> +	};

[Severity: High]
Does this missing enable-active-high property cause the SD card power supply to
fail to turn on?

The vcc_sd fixed regulator specifies GPIO_ACTIVE_HIGH but omits the
enable-active-high property. When the regulator framework attempts to enable it,
gpiolib intercepts the GPIO request via of_gpio_flags_quirks(). Because the
property is missing, the quirk forcefully applies the OF_GPIO_ACTIVE_LOW flag,
overriding the GPIO_ACTIVE_HIGH phandle argument, and logs "enforce active low
on GPIO handle".

The regulator framework would then incorrectly drive the GPIO low to enable it.
This could prevent the SD card from powering on, potentially breaking boot if
the root filesystem is located on it.

A similar issue appears to be present in reg_vcc_wifi (regulator-vcc-wifi) from
an earlier patch in this series, which also omits the enable-active-high
property.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260713105950.1346962-1-daniel@thingy.jp?part=7

  reply	other threads:[~2026-07-13 11:08 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-13 10:59 [PATCH 0/8] ARM: mstar: Board filling out pt. 1 Daniel Palmer
2026-07-13 10:59 ` [PATCH 1/8] ARM: dts: mstar: unitv2: Wire up LEDs Daniel Palmer
2026-07-13 10:59 ` [PATCH 2/8] ARM: dts: mstar: unitv2: Add regulators Daniel Palmer
2026-07-13 11:08   ` sashiko-bot
2026-07-13 10:59 ` [PATCH 3/8] ARM: dts: mstar: unitv2: Add button Daniel Palmer
2026-07-13 10:59 ` [PATCH 4/8] ARM: dts: mstar: unitv2: Link cpu to core regulator Daniel Palmer
2026-07-13 11:07   ` sashiko-bot
2026-07-13 10:59 ` [PATCH 5/8] ARM: dts: mstar: miyoo-mini: Add vibrator Daniel Palmer
2026-07-13 11:08   ` sashiko-bot
2026-07-13 10:59 ` [PATCH 6/8] ARM: dts: mstar: miyoo-mini: Add vbat switch Daniel Palmer
2026-07-13 11:09   ` sashiko-bot
2026-07-13 10:59 ` [PATCH 7/8] ARM: dts: mstar: sbc2d06: Add regulators Daniel Palmer
2026-07-13 11:08   ` sashiko-bot [this message]
2026-07-13 10:59 ` [PATCH 8/8] ARM: dts: mstar: ssd201htv2: Add SD card supply regulator Daniel Palmer
2026-07-13 11:11   ` sashiko-bot

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=20260713110806.320D91F00A3A@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=daniel@thingy.jp \
    --cc=devicetree@vger.kernel.org \
    --cc=robh@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox