[PATCH v3] thermal: amlogic: add missing dependency on MESON_SM
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Tue Jun 2 07:34:00 PDT 2026
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] The commit introduces a spurious `depends on MESON_SM` dependency for `CONFIG_AMLOGIC_THERMAL` based on the false premise that the driver calls `meson_sm_get()` and `meson_sm_get_thermal_calib()`. An analysis of `drivers/thermal/amlogic_thermal.c` confirms it relies on a syscon regmap (`amlogic,ao-secure`) for its calibration data and makes no calls to the secure monitor driver. Crucially, `MESON_SM` strictly depends on `ARM64_4K_PAGES`. Thus, this patch inadvertently disables thermal management on all Amlogic systems using 16K or 64K page sizes, or those intentionally omitting `MESON_SM`.
--
commit f9c3b9097ac770542e726a379a07047abb369bae
Author: Ronald Claveau <linux-kernel-dev at aliel.fr>
thermal: amlogic: add missing dependency on MESON_SM
This commit adds a dependency on MESON_SM to the Amlogic thermal driver
configuration to address reported undefined references.
Link: https://lore.kernel.org/oe-kbuild-all/202605291530.en7aGn7w-lkp@intel.com/
> diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig
> --- a/drivers/thermal/Kconfig
> +++ b/drivers/thermal/Kconfig
> @@ -436,6 +436,7 @@ config AMLOGIC_THERMAL
> tristate "Amlogic Thermal Support"
> default ARCH_MESON
> depends on OF && ARCH_MESON
> + depends on MESON_SM
[Severity: High]
The commit message states that the amlogic thermal driver calls
meson_sm_get() and meson_sm_get_thermal_calib(). Is this description
accurate?
Looking at drivers/thermal/amlogic_thermal.c, the driver appears to rely on a
syscon regmap (amlogic,ao-secure) for its calibration data, rather than making
direct calls to the secure monitor.
Since MESON_SM has a strict dependency on ARM64_4K_PAGES, wouldn't adding
this dependency inadvertently disable thermal management on all Amlogic
systems using 16K or 64K page sizes, or those intentionally omitting MESON_SM?
Without thermal management, these systems might suffer from a lack of
active cooling or thermal throttling.
> help
> If you say yes here you get support for Amlogic Thermal
> for G12 SoC Family.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260602-fix-missing-meson_sm-symbol-v3-1-6f7f69cd7d6c@aliel.fr?part=1
More information about the linux-amlogic
mailing list