Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "James Calligeros" <jcalligeros99@gmail.com>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH 02/12] arm64: dts: apple: t8103: Add SMC hwmon node
Date: Sun, 12 Jul 2026 09:55:06 +0000	[thread overview]
Message-ID: <20260712095507.6C0D21F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260712-smc-subdev-dt-v1-2-7763006d57c7@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Adding an empty `smc_hwmon` node without `status = "disabled"` causes the `macsmc_hwmon` driver to fail its probe and print a `dev_err` on every boot for all t8103 devices.
--

--- Patch [2]: [PATCH 02/12] arm64: dts: apple: t8103: Add SMC hwmon node ---
commit 537fe4eb204476276f256c169a803f44dce48ec8
Author: James Calligeros <jcalligeros99@gmail.com>

arm64: dts: apple: t8103: Add SMC hwmon node

This commit adds the SMC hwmon subdevice node to the t8103 device tree.

> diff --git a/arch/arm64/boot/dts/apple/t8103.dtsi b/arch/arm64/boot/dts/apple/t8103.dtsi
> --- a/arch/arm64/boot/dts/apple/t8103.dtsi
> +++ b/arch/arm64/boot/dts/apple/t8103.dtsi
[ ... ]
> @@ -918,6 +918,10 @@ smc_reboot: reboot {
>  					"boot_error_count", "panic_count";
>  			};
>  
> +			smc_hwmon: hwmon {
> +				compatible = "apple,smc-hwmon";
> +			};

[Severity: Medium]
Will this empty hwmon node cause a spurious error message on boot for all
t8103 devices?

When the macsmc_hwmon driver probes this node without any child sensor nodes
defined, it evaluates the empty node, finds 0 sensors, and prints an error:

drivers/hwmon/macsmc-hwmon.c:macsmc_hwmon_probe() {
    ...
    if (!hwmon->curr.count && !hwmon->fan.count &&
        !hwmon->power.count && !hwmon->temp.count &&
        !hwmon->volt.count) {
        dev_err(hwmon->dev,
            "No valid sensors found of any supported type\n");
        return -ENODEV;
    }
    ...
}

Should this node include status = "disabled" by default to prevent the driver
from failing its probe and polluting the kernel log?

> +
>  			rtc {
>  				compatible = "apple,smc-rtc";
>  				nvmem-cells = <&rtc_offset>;

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260712-smc-subdev-dt-v1-0-7763006d57c7@gmail.com?part=2

  reply	other threads:[~2026-07-12  9:55 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-12  9:43 [PATCH 00/12] arm64: dts: apple: Add SMC hwmon nodes James Calligeros
2026-07-12  9:43 ` [PATCH 01/12] arm64: dts: apple: t8112: Add SMC hwmon node James Calligeros
2026-07-12  9:53   ` sashiko-bot
2026-07-12  9:43 ` [PATCH 02/12] arm64: dts: apple: t8103: " James Calligeros
2026-07-12  9:55   ` sashiko-bot [this message]
2026-07-12  9:43 ` [PATCH 03/12] arm64: dts: apple: t600x: " James Calligeros
2026-07-12  9:43 ` [PATCH 04/12] arm64: dts: apple: t602x: " James Calligeros
2026-07-12  9:43 ` [PATCH 05/12] arm64: dts: apple: Add common SMC hwmon infrastructure James Calligeros
2026-07-12  9:43 ` [PATCH 06/12] arm64: dts: apple: t8103: Add common SMC hwmon sensors James Calligeros
2026-07-12  9:43 ` [PATCH 07/12] arm64: dts: apple: t8112: " James Calligeros
2026-07-12  9:43 ` [PATCH 08/12] arm64: dts: apple: t600x: " James Calligeros
2026-07-12  9:43 ` [PATCH 09/12] arm64: dts: apple: t602x: " James Calligeros
2026-07-12  9:43 ` [PATCH 10/12] arm64: dts: apple: t8103: jxxx: Add device-specific " James Calligeros
2026-07-12  9:43 ` [PATCH 11/12] arm64: dts: apple: t8112: " James Calligeros
2026-07-12  9:43 ` [PATCH 12/12] arm64: dts: apple: t60xx: " James Calligeros
2026-07-12  9:52   ` 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=20260712095507.6C0D21F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jcalligeros99@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox