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

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Adding an unconditionally enabled `smc_hwmon` node without child sensors triggers a spurious `dev_err` on boot on all T8112 platforms.
--

--- Patch [1]: [PATCH 01/12] arm64: dts: apple: t8112: Add SMC hwmon node ---
commit 98dce99825d4d377b6a5ac4bb63591402516eb04
Author: James Calligeros <jcalligeros99@gmail.com>

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

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

> diff --git a/arch/arm64/boot/dts/apple/t8112.dtsi b/arch/arm64/boot/dts/apple/t8112.dtsi
> index 85c47422d4e8e..a3241c816c26b 100644
> --- a/arch/arm64/boot/dts/apple/t8112.dtsi
> +++ b/arch/arm64/boot/dts/apple/t8112.dtsi
> @@ -921,6 +921,10 @@ smc_reboot: reboot {
>  					"boot_error_count", "panic_count";
>  			};
>  
> +			smc_hwmon: hwmon {
> +				compatible = "apple,smc-hwmon";
> +			};
> +

[Severity: Medium]
Will this unconditionally enabled node trigger a spurious error on boot?

Because this node is added without any child sensors and lacks a
status = "disabled" property, the SMC MFD core will instantiate the
macsmc-hwmon platform device.

When the probe function runs, it won't find any sensors, and will print an
error message to the kernel log before returning -ENODEV:

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 be added with status = "disabled" to prevent the
macsmc-hwmon driver from probing and polluting dmesg on platforms
without sensors?

>  			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=1

  reply	other threads:[~2026-07-12  9:53 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 [this message]
2026-07-12  9:43 ` [PATCH 02/12] arm64: dts: apple: t8103: " James Calligeros
2026-07-12  9:55   ` sashiko-bot
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=20260712095306.011D21F000E9@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