tn3399_openwrt/target/linux
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
..
apm821xx treewide: remove maintainer variable from targets 2020-03-16 22:21:45 +01:00
ar71xx ar71xx: remove hard-coded folder name from Mikrotik RB upgrade 2020-03-17 12:02:14 +01:00
arc770 treewide: remove maintainer variable from targets 2020-03-16 22:21:45 +01:00
archs38 treewide: remove maintainer variable from targets 2020-03-16 22:21:45 +01:00
armvirt kernel: move TEO governor to generic config 2020-03-17 00:51:48 +01:00
at91 treewide: remove maintainer variable from targets 2020-03-16 22:21:45 +01:00
ath25 treewide: remove maintainer variable from targets 2020-03-16 22:21:45 +01:00
ath79 ath79: add support for TP-Link Archer D7/D7b v1 2020-03-18 14:25:38 +01:00
bcm27xx bcm27xx: enable THERMAL_WRITABLE_TRIPS on bcm2710 and bcm2711 2020-03-18 12:19:13 +01:00
bcm47xx treewide: remove maintainer variable from targets 2020-03-16 22:21:45 +01:00
bcm53xx treewide: remove maintainer variable from targets 2020-03-16 22:21:45 +01:00
bcm63xx treewide: remove maintainer variable from targets 2020-03-16 22:21:45 +01:00
cns3xxx treewide: remove maintainer variable from targets 2020-03-16 22:21:45 +01:00
gemini treewide: remove maintainer variable from targets 2020-03-16 22:21:45 +01:00
generic kernel: backport and package drivetemp hwmon from v5.5 2020-03-21 17:48:34 +01:00
imx6 treewide: remove maintainer variable from targets 2020-03-16 22:21:45 +01:00
ipq40xx kernel: move TEO governor to generic config 2020-03-17 00:51:48 +01:00
ipq806x kernel: move TEO governor to generic config 2020-03-17 00:51:48 +01:00
ipq807x treewide: remove maintainer variable from targets 2020-03-16 22:21:45 +01:00
kirkwood kernel: move TEO governor to generic config 2020-03-17 00:51:48 +01:00
lantiq lantiq: kernel 5.4: enable JFFS2 2020-03-17 20:36:39 +01:00
layerscape treewide: remove maintainer variable from targets 2020-03-16 22:21:45 +01:00
malta malta: Remove kernel 4.14 support 2020-03-12 09:28:23 +01:00
mediatek mediatek: move mt76 and wpad-bacic to mt7622 subtarget 2020-03-21 12:58:29 +08:00
mpc85xx treewide: remove maintainer variable from targets 2020-03-16 22:21:45 +01:00
mvebu treewide: remove maintainer variable from targets 2020-03-16 22:21:45 +01:00
mxs mxs: fix user led for OLinuXino boards 2020-03-17 00:51:48 +01:00
octeon treewide: remove maintainer variable from targets 2020-03-16 22:21:45 +01:00
octeontx kernel: move TEO governor to generic config 2020-03-17 00:51:48 +01:00
omap treewide: remove maintainer variable from targets 2020-03-16 22:21:45 +01:00
oxnas oxnas: backport another fix for irqchip 2020-03-21 14:26:26 +00:00
pistachio treewide: remove maintainer variable from targets 2020-03-16 22:21:45 +01:00
ramips ramips: do not add metadata to factory images 2020-03-17 22:17:59 +01:00
rb532 treewide: remove maintainer variable from targets 2020-03-16 22:21:45 +01:00
samsung treewide: remove maintainer variable from targets 2020-03-16 22:21:45 +01:00
sunxi treewide: remove maintainer variable from targets 2020-03-16 22:21:45 +01:00
tegra tegra: switch to kernel 5.4 2020-03-17 00:51:48 +01:00
uml treewide: Remove self from MAINTAINER entries 2019-12-23 13:18:04 -08:00
x86 x86: allow non gzipped images 2020-03-21 10:36:00 +00:00
zynq zynq: switch to kernel 5.4 2020-03-17 00:51:48 +01:00
Makefile