openwrt/package/kernel/linux/modules
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
..
001-depends.mk kernel: remove useless AddDepends/rtc abstraction 2015-03-29 08:12:50 +00:00
block.mk kernel: make kmod-ata-core selected by dependent modules 2020-03-11 19:40:03 +01:00
can.mk kernel: can: add MCP251x CAN controller module support 2020-03-01 21:36:00 +01:00
crypto.mk mvebu: fix build regression due to neon-asm ghash module 2020-02-29 14:14:08 +01:00
firewire.mk firewire.mk: sort kernel modules 2018-02-13 11:48:49 +01:00
fs.mk kernel: kmod-fs-exfat: fix typo LINUX_4_{,1}4 2020-03-09 22:40:48 +08:00
hwmon.mk kernel: backport and package drivetemp hwmon from v5.5 2020-03-21 17:48:34 +01:00
i2c.mk kernel: make kmod-i2c-mux selected by dependent modules 2020-03-16 16:26:29 +01:00
iio.mk kernel: add kernel module for Sensirion SPS30 PMS 2020-03-08 15:10:55 +01:00
input.mk kernel: Add of_touchscreen.ko to kmod-input-touchscreen-ads7846 2020-02-28 17:50:46 +01:00
leds.mk kernel: Replace ledtrig-netdev with upstream backport 2018-12-15 12:50:06 +01:00
lib.mk kernel: fix lib-xor for ARM64 2020-03-08 15:10:55 +01:00
netdevices.mk kernel: load rtl8366_smi and rtl8367b on boot 2020-03-21 12:58:29 +08:00
netfilter.mk kernel: Make kmod-nft-core depend on kmod-nf-nat 2020-02-28 17:50:46 +01:00
netsupport.mk kernel: mode_beet mode_transport mode_tunnel xfram modules 2020-02-28 17:50:46 +01:00
nls.mk kernel: add Chinese codepages 2017-02-20 09:13:52 +01:00
other.mk kernel: kmod-serial-8250: fix linux 5.3 dependencies 2020-03-16 22:28:16 +01:00
pcmcia.mk kernel: add support for Option Fusion+ PCMCIA card 2016-12-20 09:35:36 +01:00
sound.mk kernel: Add snd-intel-nhlt.ko to kmod-sound-hda-intel 2020-02-28 17:50:46 +01:00
spi.mk kernel: remove kmod-spi-gpio-old 2018-02-09 10:29:07 +01:00
usb.mk modules: fix dwc3-qcom wrong condition 2020-03-03 23:38:23 +01:00
video.mk kernel: Remove chash.ko from kmod-drm-amdgpu 2020-02-28 17:50:46 +01:00
virt.mk kernel: remove another redundant KCONFIG entry in virt.mk 2016-11-24 13:41:10 +01:00
w1.mk kernel: remove obsolete kernel version switches 2020-01-12 16:34:20 +01:00
wireless.mk kernel: remove obsolete kernel version switches 2020-01-12 16:34:20 +01:00
wpan.mk kernel: avoid underscore in *6lowpan package names 2020-02-19 22:07:40 +01:00