From: sashiko-bot@kernel.org
To: "Potin Lai" <potin.lai.pt@gmail.com>
Cc: robh@kernel.org, devicetree@vger.kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH] ARM: dts: aspeed: sanmiguel: Remove HSC nodes
Date: Thu, 30 Jul 2026 13:17:51 +0000 [thread overview]
Message-ID: <20260730131751.7FA101F00A3E@smtp.kernel.org> (raw)
In-Reply-To: <20260730-upstream-sanmiguel-remove-hsc-nodes-v1-1-f0308eb8a00c@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Removing actual hardware from the Device Tree to bypass kernel probing for userspace preference violates DT principles.
--
--- Patch [1]: [PATCH] ARM: dts: aspeed: sanmiguel: Remove HSC nodes ---
commit 4baedd7709172e87dfefc81a46cefd1b968b6e6a
Author: Potin Lai <potin.lai.pt@gmail.com>
ARM: dts: aspeed: sanmiguel: Remove HSC nodes
This commit removes Hot-Swap Controller power monitor nodes from the device
tree. The commit message states this is done to prevent automatic kernel
probing and allow userspace to handle the device instantiation.
> diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-sanmiguel.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-sanmiguel.dts
> index 3cc6e772cc8c4..98f224d2c091f 100644
> --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-sanmiguel.dts
> +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-sanmiguel.dts
> @@ -442,50 +442,6 @@ &i2c8 {
> &i2c9 {
> status = "okay";
>
> - pdb_mps_hsc1: power-monitor@10 {
> - compatible = "mps,mp5926";
> - reg = <0x10>;
> - };
[Severity: Medium]
Does removing these nodes to accommodate userspace policy conflict with the
principle that the device tree should be an OS-agnostic description of the
physical hardware?
Since the device tree is meant to describe the physical hardware rather than
dictate software configuration, removing physically present devices to prevent
kernel probing is typically avoided. If these components are on hot-pluggable
boards or are conditionally populated, would it be more appropriate to use
device tree overlays, or to mark the nodes with status = "disabled" instead
of deleting the hardware description outright?
[ ... ]
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260730-upstream-sanmiguel-remove-hsc-nodes-v1-1-f0308eb8a00c@gmail.com?part=1
prev parent reply other threads:[~2026-07-30 13:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-30 13:11 [PATCH] ARM: dts: aspeed: sanmiguel: Remove HSC nodes Potin Lai
2026-07-30 13:17 ` 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=20260730131751.7FA101F00A3E@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=potin.lai.pt@gmail.com \
--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 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.