You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
4 years ago
..
acx-mac80211 kernel: replace SUBDIRS with M in package recipes 4 years ago
ath10k-ct ath10k-ct: Use ath10k-ct version 5.4 4 years ago
bcm27xx-gpu-fw bcm27xx-gpu-fw: update to latest version 4 years ago
broadcom-wl kernel: replace SUBDIRS with M in package recipes 4 years ago
button-hotplug kernel: replace SUBDIRS with M in package recipes 4 years ago
cryptodev-linux cryptodev-linux: Fix error when compiling with 5.4 kernel 4 years ago
dtc/patches package: kernel: dtc: Add DTO support 7 years ago
gpio-button-hotplug gpio-button-hotplug: remove duplicate logging text 4 years ago
gpio-nct5104d kernel: replace SUBDIRS with M in package recipes 4 years ago
hwmon-gsc kernel: make kmod-hwmon-core selected by dependent modules 4 years ago
i2c-gpio-custom kernel: replace SUBDIRS with M in package recipes 4 years ago
kmod-sched-cake kernel: replace SUBDIRS with M in package recipes 4 years ago
lantiq lantiq: ltq-tapi: fix compilation with newer Linux kernels 4 years ago
leds-apu2 kernel: replace SUBDIRS with M in package recipes 4 years ago
linux kernel: backport and package drivetemp hwmon from v5.5 4 years ago
mac80211 mac80211: do not try to setup hostapd-managed interfaces. 4 years ago
mt76 mt76: update to the latest version 4 years ago
mwlwifi kernel: replace SUBDIRS with M in package recipes 4 years ago
nat46 nat46: Fix compile with kernel 5.4 4 years ago
om-watchdog kernel/om-watchdog: Apply device renames from ramips 5 years ago
rtc-rv5c386a kernel: replace SUBDIRS with M in package recipes 4 years ago
rtl8812au-ct rtl8812au-ct: Update to version 2020-01-12 4 years ago
spi-gpio-custom kernel: replace SUBDIRS with M in package recipes 4 years ago
trelay kernel: replace SUBDIRS with M in package recipes 4 years ago
w1-gpio-custom kernel: replace SUBDIRS with M in package recipes 4 years ago