openwrt/package/kernel
Christian Lamparter d107aaa910 kernel: backport and package drivetemp hwmon from v5.5
This patch backports the hwmon drivetemp sensor module from vanilla
linux 5.5 to be available on OpenWrt's 5.4 kernel.

Extract from The upstream commit by Guenter Roeck <linux@roeck-us.net>:
hwmon: Driver for disk and solid state drives with temperature sensors

"Reading the temperature of ATA drives has been supported for years
by userspace tools such as smarttools or hddtemp. The downside of
such tools is that they need to run with super-user privilege, that
the temperatures are not reported by standard tools such as 'sensors'
or 'libsensors', and that drive temperatures are not available for use
in the kernel's thermal subsystem.

This driver solves this problem by adding support for reading the
temperature of ATA drives from the kernel using the hwmon API and
by adding a temperature zone for each drive.

With this driver, the hard disk temperature can be read [...]
using sysfs:

$ grep . /sys/class/hwmon/hwmon9/{name,temp1_input}
/sys/class/hwmon/hwmon9/name:drivetemp
/sys/class/hwmon/hwmon9/temp1_input:23000

If the drive supports SCT transport and reports temperature limits,
those are reported as well.

drivetemp-scsi-0-0
Adapter: SCSI adapter
temp1:        +27.0<C2><B0>C (low  =  +0.0<C2><B0>C, high = +60.0<C2><B0>C)
                             (crit low = -41.0<C2><B0>C, crit = +85.0<C2><B0>C)
                             (lowest = +23.0<C2><B0>C, highest = +34.0<C2><B0>C)

The driver attempts to use SCT Command Transport to read the drive
temperature. If the SCT Command Transport feature set is not available,
or if it does not report the drive temperature, drive temperatures may
be readable through SMART attributes. Since SMART attributes are not well
defined, this method is only used as fallback mechanism."

This patch incorperates a patch made by Linus Walleij:
820-libata-Assign-OF-node-to-the-SCSI-device.patch
This patch is necessary in order to wire-up the drivetemp
sensor into the device tree's thermal-zones.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2020-03-21 17:48:34 +01:00
..
acx-mac80211 kernel: replace SUBDIRS with M in package recipes 2020-02-22 16:38:41 +01:00
ath10k-ct ath10k-ct: Use ath10k-ct version 5.4 2020-02-24 23:25:28 +01:00
bcm27xx-gpu-fw bcm27xx-gpu-fw: update to latest version 2020-02-29 08:24:57 +01:00
broadcom-wl kernel: replace SUBDIRS with M in package recipes 2020-02-22 16:38:41 +01:00
button-hotplug kernel: replace SUBDIRS with M in package recipes 2020-02-22 16:38:41 +01:00
cryptodev-linux cryptodev-linux: Fix error when compiling with 5.4 kernel 2020-03-18 23:12:48 +01:00
dtc/patches package: kernel: dtc: Add DTO support 2017-11-06 16:39:41 +01:00
gpio-button-hotplug gpio-button-hotplug: remove duplicate logging text 2020-03-08 15:10:55 +01:00
gpio-nct5104d kernel: replace SUBDIRS with M in package recipes 2020-02-22 16:38:41 +01:00
hwmon-gsc kernel: make kmod-hwmon-core selected by dependent modules 2020-03-13 14:23:33 +01:00
i2c-gpio-custom kernel: replace SUBDIRS with M in package recipes 2020-02-22 16:38:41 +01:00
kmod-sched-cake kernel: replace SUBDIRS with M in package recipes 2020-02-22 16:38:41 +01:00
lantiq lantiq: ltq-tapi: fix compilation with newer Linux kernels 2020-03-16 22:28:16 +01:00
leds-apu2 kernel: replace SUBDIRS with M in package recipes 2020-02-22 16:38:41 +01:00
linux kernel: backport and package drivetemp hwmon from v5.5 2020-03-21 17:48:34 +01:00
mac80211 mac80211: do not try to setup hostapd-managed interfaces. 2020-03-20 21:55:17 +00:00
mt76 mt76: update to the latest version 2020-03-11 13:33:36 +01:00
mwlwifi kernel: replace SUBDIRS with M in package recipes 2020-02-22 16:38:41 +01:00
nat46 nat46: Fix compile with kernel 5.4 2020-02-28 17:50:46 +01:00
om-watchdog kernel/om-watchdog: Apply device renames from ramips 2019-07-10 17:36:29 +02:00
rtc-rv5c386a kernel: replace SUBDIRS with M in package recipes 2020-02-22 16:38:41 +01:00
rtl8812au-ct rtl8812au-ct: Update to version 2020-01-12 2020-02-24 21:27:08 +01:00
spi-gpio-custom kernel: replace SUBDIRS with M in package recipes 2020-02-22 16:38:41 +01:00
trelay kernel: replace SUBDIRS with M in package recipes 2020-02-22 16:38:41 +01:00
w1-gpio-custom kernel: replace SUBDIRS with M in package recipes 2020-02-22 16:38:41 +01:00