]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
hwmon: (scmi) Enable sensors to assure they can be read
authorMarek Vasut <marek.vasut@mailbox.org>
Wed, 15 Oct 2025 11:49:28 +0000 (13:49 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 15 Oct 2025 18:04:40 +0000 (11:04 -0700)
commit72804d1631b3688014e06065b9f95885ba3e08b6
treeaf3c4439736bfabcfbae016a8bbe8400a90845c5
parent578652bef0e8aaeb6a69efdfce67e255985b04ff
hwmon: (scmi) Enable sensors to assure they can be read

The SCMI specification states that SENSOR_CONFIG_SET is used to
enable/disable the sensors. The sensors can be disabled by default,
which is the case at least on NXP i.MX95. Explicitly trigger the
SENSOR_CONFIG_SET to enable the sensors, otherwise sensor read may
fail and won't return valid data.

Signed-off-by: Marek Vasut <marek.vasut@mailbox.org>
Link: https://lore.kernel.org/r/20251015114953.148706-1-marek.vasut@mailbox.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/scmi-hwmon.c