openwrt/target/linux/generic/pending-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
..
102-MIPS-only-process-negative-stack-offsets-on-stack-tr.patch kernel: copy kernel 4.19 code to 5.4 2020-02-28 17:50:45 +01:00
110-ehci_hcd_ignore_oc.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
120-Fix-alloc_node_mem_map-with-ARCH_PFN_OFFSET-calcu.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
130-add-linux-spidev-compatible-si3210.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
140-jffs2-use-.rename2-and-add-RENAME_WHITEOUT-support.patch kernel: copy kernel 4.19 code to 5.4 2020-02-28 17:50:45 +01:00
141-jffs2-add-RENAME_EXCHANGE-support.patch kernel: copy kernel 4.19 code to 5.4 2020-02-28 17:50:45 +01:00
150-bridge_allow_receiption_on_disabled_port.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
180-net-phy-at803x-add-support-for-AT8032.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
201-extra_optimization.patch kernel: bump 5.4 to 5.4.24 2020-03-09 20:43:53 +01:00
203-kallsyms_uncompressed.patch kernel: bump 5.4 to 5.4.24 2020-03-09 20:43:53 +01:00
205-backtrace_module_info.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
240-remove-unsane-filenames-from-deps_initramfs-list.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
261-enable_wilink_platform_without_drivers.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
300-mips_expose_boot_raw.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
302-mips_no_branch_likely.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
305-mips_module_reloc.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
306-mips_mem_functions_performance.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
307-mips_highmem_offset.patch kernel: copy kernel 4.19 code to 5.4 2020-02-28 17:50:45 +01:00
308-mips32r2_tune.patch kernel: copy kernel 4.19 code to 5.4 2020-02-28 17:50:45 +01:00
309-MIPS-Add-CPU-option-reporting-to-proc-cpuinfo.patch kernel: copy kernel 4.19 code to 5.4 2020-02-28 17:50:45 +01:00
310-arm_module_unresolved_weak_sym.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
330-MIPS-kexec-Accept-command-line-parameters-from-users.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
332-arc-add-OWRTDTB-section.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
333-arc-enable-unaligned-access-in-kernel-mode.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
342-powerpc-Enable-kernel-XZ-compression-option-on-PPC_8.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
400-mtd-add-rootfs-split-support.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
401-mtd-add-support-for-different-partition-parser-types.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
402-mtd-use-typed-mtd-parsers-for-rootfs-and-firmware-split.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
403-mtd-hook-mtdsplit-to-Kbuild.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
404-mtd-add-more-helper-functions.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
411-mtd-partial_eraseblock_write.patch kernel: backport mtd partition address fix sent upstream 2020-03-09 11:49:42 +01:00
412-mtd-partial_eraseblock_unlock.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
419-mtd-redboot-add-of_match_table-with-DT-binding.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
420-mtd-redboot_space.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
430-mtd-add-myloader-partition-parser.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
431-mtd-bcm47xxpart-check-for-bad-blocks-when-calculatin.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
432-mtd-bcm47xxpart-detect-T_Meter-partition.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
440-block2mtd_init.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
441-block2mtd_probe.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
450-mtd-spi-nor-allow-NOR-driver-to-write-fewer-bytes-th.patch generic: 5.4: Add 4B_OPCODES flag to w25q256 2020-03-12 12:59:44 +01:00
460-mtd-cfi_cmdset_0002-no-erase_suspend.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
461-mtd-cfi_cmdset_0002-add-buffer-write-cmd-timeout.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
465-m25p80-mx-disable-software-protection.patch generic: 5.4: Add 4B_OPCODES flag to w25q256 2020-03-12 12:59:44 +01:00
466-Revert-mtd-spi-nor-fix-Spansion-regressions-aliased-.patch generic: 5.4: Add 4B_OPCODES flag to w25q256 2020-03-12 12:59:44 +01:00
470-mtd-spi-nor-support-limiting-4K-sectors-support-base.patch generic: 5.4: Add 4B_OPCODES flag to w25q256 2020-03-12 12:59:44 +01:00
476-mtd-spi-nor-add-eon-en25q128.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
479-mtd-spi-nor-add-xtx-xt25f128b.patch generic: 5.4: Add 4B_OPCODES flag to w25q256 2020-03-12 12:59:44 +01:00
480-mtd-set-rootfs-to-be-root-dev.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
490-ubi-auto-attach-mtd-device-named-ubi-or-data-on-boot.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
491-ubi-auto-create-ubiblock-device-for-rootfs.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
493-ubi-set-ROOT_DEV-to-ubiblock-rootfs-if-unset.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
494-mtd-ubi-add-EOF-marker-support.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
495-mtd-core-add-get_mtd_device_by_node.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
496-dt-bindings-add-bindings-for-mtd-concat-devices.patch kernel: copy kernel 4.19 code to 5.4 2020-02-28 17:50:45 +01:00
497-mtd-mtdconcat-add-dt-driver-for-concat-devices.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
530-jffs2_make_lzma_available.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
532-jffs2_eofdetect.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
553-ubifs-Add-option-to-create-UBI-FS-version-4-on-empty.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
600-netfilter_conntrack_flush.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
610-netfilter_match_bypass_default_checks.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
611-netfilter_match_bypass_default_table.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
612-netfilter_match_reduce_memory_access.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
613-netfilter_optional_tcp_window_check.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
616-net_optimize_xfrm_calls.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
620-net_sched-codel-do-not-defer-queue-length-update.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
630-packet_socket_type.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
640-netfilter-nf_flow_table-add-hardware-offload-support.patch kernel: bump 5.4 to 5.4.24 2020-03-09 20:43:53 +01:00
641-netfilter-nf_flow_table-support-hw-offload-through-v.patch kernel: bump 5.4 to 5.4.24 2020-03-09 20:43:53 +01:00
642-net-8021q-support-hardware-flow-table-offload.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
643-net-bridge-support-hardware-flow-table-offload.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
644-net-pppoe-support-hardware-flow-table-offload.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
645-netfilter-nf_flow_table-rework-hardware-offload-time.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
646-netfilter-nf_flow_table-rework-private-driver-data.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
655-increase_skb_pad.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
666-Add-support-for-MAP-E-FMRs-mesh-mode.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
670-ipv6-allow-rejecting-with-source-address-failed-policy.patch kernel: bump 5.4 to 5.4.24 2020-03-09 20:43:53 +01:00
671-net-provide-defines-for-_POLICY_FAILED-until-all-cod.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
680-NET-skip-GRO-for-foreign-MAC-addresses.patch kernel: bump 5.4 to 5.4.24 2020-03-09 20:43:53 +01:00
681-NET-add-of_get_mac_address_mtd.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
703-phy-add-detach-callback-to-struct-phy_driver.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
735-net-phy-at803x-fix-at8033-sgmii-mode.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
739-net-avoid-tx-fault-with-Nokia-GPON-module.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
740-net-sfp-remove-incomplete-100BASE-FX-and-100BASE-LX-.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
741-net-sfp-derive-interface-mode-from-ethtool-link-mode.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
742-net-sfp-add-more-extended-compliance-codes.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
743-net-sfp-add-module-start-stop-upstream-notifications.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
744-net-sfp-move-phy_start-phy_stop-to-phylink.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
745-net-mdio-i2c-add-support-for-Clause-45-accesses.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
746-net-phylink-re-split-__phylink_connect_phy.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
747-net-phylink-support-Clause-45-PHYs-on-SFP-modules.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
748-net-phylink-split-link_an_mode-configured-and-curren.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
749-net-phylink-split-phylink_sfp_module_insert.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
750-net-phylink-delay-MAC-configuration-for-copper-SFP-m.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
751-net-phylink-make-Broadcom-BCM84881-based-SFPs-work.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
752-net-phy-add-Broadcom-BCM84881-PHY-driver.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
753-net-sfp-add-support-for-Clause-45-PHYs.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
754-net-sfp-fix-unbind.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
755-net-sfp-fix-hwmon.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
756-net-sfp-use-a-definition-for-the-fault-recovery-atte.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
757-net-sfp-rename-sm_retries.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
758-net-sfp-error-handling-for-phy-probe.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
759-net-sfp-re-attempt-probing-for-phy.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
800-bcma-get-SoC-device-struct-copy-its-DMA-params-to-th.patch kernel: copy kernel 4.19 code to 5.4 2020-02-28 17:50:45 +01:00
810-pci_disable_common_quirks.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
811-pci_disable_usb_common_quirks.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
820-libata-Assign-OF-node-to-the-SCSI-device.patch kernel: backport and package drivetemp hwmon from v5.5 2020-03-21 17:48:34 +01:00
834-ledtrig-libata.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00
920-mangle_bootargs.patch kernel: bump 5.4 to 5.4.24 2020-03-09 20:43:53 +01:00
0931-w1-gpio-fix-problem-with-platfom-data-in-w1-gpio.patch kernel: add support for kernel 5.4 2020-02-28 17:50:45 +01:00