Package: src:linux
Version: 6.12.116-1
Severity: wishlist
Tags: trixie
Dear Maintainer,
On the arm64 kernels (linux-image-arm64 and linux-image-rt-arm64), the
raspberrypi-hwmon driver (drivers/hwmon/raspberrypi-hwmon.c,
CONFIG_SENSORS_RASPBERRYPI_HWMON) is not built. The firmware driver
(CONFIG_RASPBERRYPI_FIRMWARE) is, and it already registers the platform
device "raspberrypi-hwmon" on a Raspberry Pi 4:
$ ls /sys/bus/platform/devices | grep hwmon
raspberrypi-hwmon
$ modinfo raspberrypi-hwmon
modinfo: ERROR: Module raspberrypi-hwmon not found.
Without the driver, an under-voltage of the power supply is invisible:
the kernel never logs "Undervoltage detected!" and /sys/class/hwmon has
no rpi_volt sensor. On a Raspberry Pi used as an unattended controller
this hides the most common cause of spontaneous resets (a weak supply or
cable).
The driver is small (one file, GPL-2.0+), in mainline since 4.20,
depends only on RASPBERRYPI_FIRMWARE, and is autoloaded by its platform
alias. We would ask to build it as a module (=m) on arm64, like other
hwmon drivers.
Thank you.
Nicola Scuor