openwrt/target/linux/generic/backport-5.4
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
..
010-Kbuild-don-t-hardcode-path-to-awk-in-scripts-ld-vers.patch
011-kbuild-export-SUBARCH.patch
020-backport_netfilter_rtcache.patch
030-modpost-add-a-helper-to-get-data-pointed-by-a-symbol.patch linux-5.4: backport modpost upstream patches 2020-03-01 15:52:36 +01:00
031-modpost-refactor-namespace_from_kstrtabns-to-not-har.patch linux-5.4: backport modpost upstream patches 2020-03-01 15:52:36 +01:00
040-ARM-8918-2-only-build-return_address-if-needed.patch linux-5.4: backport ARM symbol export fix 2020-03-01 16:02:49 +01:00
343-netfilter-nft_flow_offload-handle-netdevice-events-f.patch
370-netfilter-nf_flow_table-fix-offloaded-connection-tim.patch
371-netfilter-nf_flow_table-fix-up-ct-state-of-flows-aft.patch
410-mtd-fix-calculating-partition-end-address.patch kernel: backport mtd partition address fix sent upstream 2020-03-09 11:49:42 +01:00
464-v5.6-mtd-spi-nor-Add-4B_OPCODES-flag-to-w25q256.patch generic: 5.4: Add 4B_OPCODES flag to w25q256 2020-03-12 12:59:44 +01:00
507-v5.6-iio-chemical-sps30-fix-missing-triggered-buffer-depe.patch ipq40xx: add IPQ4019 SD/MMC controller support 2020-03-09 00:53:50 +01:00
600-ipv6-addrconf-call-ipv6_mc_up-for-non-Ethernet-inter.patch kernel: backport out-of-memory fix for non-Ethernet devices 2020-03-11 08:40:45 +01:00
716-v5.4-net-sfp-move-fwnode-parsing-into-sfp-bus-layer.patch
717-v5.5-net-sfp-rework-upstream-interface.patch
718-v5.5-net-sfp-fix-sfp_bus_put-kernel-documentation.patch
719-v5.5-net-sfp-fix-sfp_bus_add_upstream-warning.patch
720-v5.5-net-sfp-move-sfp-sub-state-machines-into-separate-fu.patch
721-v5.5-net-sfp-move-tx-disable-on-device-down-to-main-state.patch
722-v5.5-net-sfp-rename-sfp_sm_ins_next-as-sfp_sm_mod_next.patch
723-v5.5-net-sfp-handle-module-remove-outside-state-machine.patch
724-v5.5-net-sfp-rename-T_PROBE_WAIT-to-T_SERIAL.patch
725-v5.5-net-sfp-parse-SFP-power-requirement-earlier.patch
726-v5.5-net-sfp-avoid-power-switch-on-address-change-modules.patch
727-v5.5-net-sfp-control-TX_DISABLE-and-phy-only-from-main-st.patch
728-v5.5-net-sfp-split-the-PHY-probe-from-sfp_sm_mod_init.patch
729-v5.5-net-sfp-eliminate-mdelay-from-PHY-probe.patch
730-v5.5-net-sfp-allow-fault-processing-to-transition-to-othe.patch
731-v5.5-net-sfp-ensure-TX_FAULT-has-deasserted-before-probin.patch
732-v5.5-net-sfp-track-upstream-s-attachment-state-in-state-m.patch
733-v5.5-net-sfp-split-power-mode-switching-from-probe.patch
734-v5.5-net-sfp-move-module-insert-reporting-out-of-probe.patch
735-v5.5-net-sfp-allow-sfp-to-probe-slow-to-initialise-GPON-m.patch
736-v5.5-net-sfp-allow-modules-with-slow-diagnostics-to-probe.patch
737-v5.5-net-phy-add-core-phylib-sfp-support.patch
738-v5.5-net-phy-marvell10g-add-SFP-support.patch
739-v5.5-net-phylink-update-to-use-phy_support_asym_pause.patch
742-v5.5-net-sfp-add-support-for-module-quirks.patch
743-v5.5-net-sfp-add-some-quirks-for-GPON-modules.patch
744-v5.5-net-sfp-soft-status-and-control-support.patch
800-v5.5-iio-imu-Add-support-for-the-FXOS8700-IMU.patch ipq40xx: add IPQ4019 SD/MMC controller support 2020-03-09 00:53:50 +01:00
800-v5.5-scsi-core-Add-sysfs-attributes-for-VPD-pages-0h-and-.patch kernel: backport and package drivetemp hwmon from v5.5 2020-03-21 17:48:34 +01:00
801-v5.5-hwmon-Driver-for-disk-and-solid-state-drives-with-te.patch kernel: backport and package drivetemp hwmon from v5.5 2020-03-21 17:48:34 +01:00
801-v5.6-leds-populate-the-device-s-of_node.patch kernel: 5.4: backport led register fix 2020-03-09 00:53:50 +01:00