08 Mar, 2020

1 commit

  • Merge Linux stable release v5.4.24 into imx_5.4.y

    * tag 'v5.4.24': (3306 commits)
    Linux 5.4.24
    blktrace: Protect q->blk_trace with RCU
    kvm: nVMX: VMWRITE checks unsupported field before read-only field
    ...

    Signed-off-by: Jason Liu

    Conflicts:
    arch/arm/boot/dts/imx6sll-evk.dts
    arch/arm/boot/dts/imx7ulp.dtsi
    arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi
    drivers/clk/imx/clk-composite-8m.c
    drivers/gpio/gpio-mxc.c
    drivers/irqchip/Kconfig
    drivers/mmc/host/sdhci-of-esdhc.c
    drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
    drivers/net/can/flexcan.c
    drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
    drivers/net/ethernet/mscc/ocelot.c
    drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
    drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
    drivers/net/phy/realtek.c
    drivers/pci/controller/mobiveil/pcie-mobiveil-host.c
    drivers/perf/fsl_imx8_ddr_perf.c
    drivers/tee/optee/shm_pool.c
    drivers/usb/cdns3/gadget.c
    kernel/sched/cpufreq.c
    net/core/xdp.c
    sound/soc/fsl/fsl_esai.c
    sound/soc/fsl/fsl_sai.c
    sound/soc/sof/core.c
    sound/soc/sof/imx/Kconfig
    sound/soc/sof/loader.c

    Jason Liu
     

20 Feb, 2020

1 commit

  • commit cf2b012c90e74e85d8aea7d67e48868069cfee0c upstream.

    Change 21537dc driver PMBus polling of MFR_COMMON from bits 5/4 to
    bits 6/5. This fixs a LTC297X family bug where polling always returns
    not busy even when the part is busy. This fixes a LTC388X and
    LTM467X bug where polling used PEND and NOT_IN_TRANS, and BUSY was
    not polled, which can lead to NACKing of commands. LTC388X and
    LTM467X modules now poll BUSY and PEND, increasing reliability by
    eliminating NACKing of commands.

    Signed-off-by: Mike Jones
    Link: https://lore.kernel.org/r/1580234400-2829-2-git-send-email-michael-a1.jones@analog.com
    Fixes: e04d1ce9bbb49 ("hwmon: (ltc2978) Add polling for chips requiring it")
    Signed-off-by: Guenter Roeck
    Signed-off-by: Greg Kroah-Hartman

    Mike Jones
     

29 Jan, 2020

4 commits

  • commit e51a7dda299815e92f43960d620cdfc8dfc144f2 upstream.

    No alarm is reported by /sys/.../inX_alarm

    In detail:

    The SMI Voltage status register is the only register giving a status
    for voltages, but it does not work like the non-SMI status registers
    used for temperatures and fans.
    A bit is set for each input crossing a threshold, in both direction,
    but the "inside" or "outside" limits info is not available.
    Also this register is cleared on read.
    Note : this is not explicitly spelled out in the datasheet, but from
    experiment.
    As a result if an input is crossing a threshold (min or max in any
    direction), the alarm is reported only once even if the input is
    still outside limits. Also if the alarm for another input is read
    before the one of this input, no alarm is reported at all.

    Signed-off-by: Gilles Buloz
    Link: https://lore.kernel.org/r/5de0f566.tBga5POKAgHlmd0p%gilles.buloz@kontron.com
    Fixes: 3434f3783580 ("hwmon: Driver for Nuvoton NCT7802Y")
    Signed-off-by: Guenter Roeck
    Signed-off-by: Greg Kroah-Hartman

    Gilles Buloz
     
  • commit 7713e62c8623c54dac88d1fa724aa487a38c3efb upstream.

    in0 thresholds are written to the in2 thresholds registers
    in2 thresholds to in3 thresholds
    in3 thresholds to in4 thresholds
    in4 thresholds to in0 thresholds

    Signed-off-by: Gilles Buloz
    Link: https://lore.kernel.org/r/5de0f509.rc0oEvPOMjbfPW1w%gilles.buloz@kontron.com
    Fixes: 3434f3783580 ("hwmon: Driver for Nuvoton NCT7802Y")
    Signed-off-by: Guenter Roeck
    Signed-off-by: Greg Kroah-Hartman

    Gilles Buloz
     
  • commit 3bf8bdcf3bada771eb12b57f2a30caee69e8ab8d upstream.

    The hwmon core uses device managed functions, tied to the hwmon parent
    device, for various internal memory allocations. This is problematic
    since hwmon device lifetime does not necessarily match its parent's
    device lifetime. If there is a mismatch, memory leaks will accumulate
    until the parent device is released.

    Fix the problem by managing all memory allocations internally. The only
    exception is memory allocation for thermal device registration, which
    can be tied to the hwmon device, along with thermal device registration
    itself.

    Fixes: d560168b5d0f ("hwmon: (core) New hwmon registration API")
    Cc: stable@vger.kernel.org # v4.14.x: 47c332deb8e8: hwmon: Deal with errors from the thermal subsystem
    Cc: stable@vger.kernel.org # v4.14.x: 74e3512731bd: hwmon: (core) Fix double-free in __hwmon_device_register()
    Cc: stable@vger.kernel.org # v4.9.x: 3a412d5e4a1c: hwmon: (core) Simplify sysfs attribute name allocation
    Cc: stable@vger.kernel.org # v4.9.x: 47c332deb8e8: hwmon: Deal with errors from the thermal subsystem
    Cc: stable@vger.kernel.org # v4.9.x: 74e3512731bd: hwmon: (core) Fix double-free in __hwmon_device_register()
    Cc: stable@vger.kernel.org # v4.9+
    Cc: Martin K. Petersen
    Signed-off-by: Guenter Roeck
    Signed-off-by: Greg Kroah-Hartman

    Guenter Roeck
     
  • commit cf3ca1877574a306c0207cbf7fdf25419d9229df upstream.

    reg2volt returns the voltage that matches a given register value.
    Converting this back the other way with volt2reg didn't return the same
    register value because it used truncation instead of rounding.

    This meant that values read from sysfs could not be written back to sysfs
    to set back the same register value.

    With this change, volt2reg will return the same value for every voltage
    previously returned by reg2volt (for the set of possible input values)

    Signed-off-by: Luuk Paulussen
    Link: https://lore.kernel.org/r/20191205231659.1301-1-luuk.paulussen@alliedtelesis.co.nz
    cc: stable@vger.kernel.org
    Signed-off-by: Guenter Roeck
    Signed-off-by: Greg Kroah-Hartman

    Luuk Paulussen
     

23 Jan, 2020

2 commits

  • commit 92b39ad440968bab38eb6577d63c12994601ed94 upstream.

    The LED blink_set function incorrectly did not tell the PSU LED to blink
    if brightness was LED_OFF. Fix this, and also correct the LED_OFF
    command data, which should give control of the LED back to the PSU
    firmware. Also prevent I2C failures from getting the driver LED state
    out of sync and add some dev_dbg statements.

    Signed-off-by: Eddie James
    Link: https://lore.kernel.org/r/20191106200106.29519-3-eajames@linux.ibm.com
    Fixes: ef9e1cdf419a3 ("hwmon: (pmbus/cffps) Add led class device for power supply fault led")
    Signed-off-by: Guenter Roeck
    Signed-off-by: Greg Kroah-Hartman

    Eddie James
     
  • commit 9861ff954c7e83e2f738ce16fbe15f8a1e121771 upstream.

    Since i2c_smbus functions can sleep, the brightness setting function
    for this driver must be the blocking version to avoid scheduling while
    atomic.

    Signed-off-by: Eddie James
    Link: https://lore.kernel.org/r/20191106200106.29519-2-eajames@linux.ibm.com
    Fixes: ef9e1cdf419a3 ("hwmon: (pmbus/cffps) Add led class device for power supply fault led")
    Signed-off-by: Guenter Roeck
    Signed-off-by: Greg Kroah-Hartman

    Eddie James
     

02 Dec, 2019

1 commit

  • * sensor/next: (29 commits)
    LF-99 hwmon: mag3110: correct processing order after probe error
    MLK-22296-4 misc: mpl3115: Fix build warning when CONFIG_PM_SLEEP=n
    MLK-17061-1 sensor: set sensor interrupt pins as open-drain
    hwmon: mma8451: Add regulator_disable to avoid WARN_ON
    hwmon: mag3110: Add regulator_disable to avoid WARN_ON
    ...

    Dong Aisheng
     

25 Nov, 2019

10 commits


29 Oct, 2019

1 commit

  • After introducing "samples" to the calculation of wait time, the
    driver might timeout at the regmap_field_read_poll_timeout call,
    because the wait time could be longer than the 100000 usec limit
    due to a large "samples" number.

    So this patch sets the timeout limit to 2 times of the wait time
    in order to fix this issue.

    Fixes: 5c090abf945b ("hwmon: (ina3221) Add averaging mode support")
    Signed-off-by: Nicolin Chen
    Link: https://lore.kernel.org/r/20191022005922.30239-1-nicoleotsuka@gmail.com
    Signed-off-by: Guenter Roeck

    Nicolin Chen
     

21 Oct, 2019

1 commit

  • … nct7904_data struct.

    Voltage sensors overlap with external temperature sensors. Detect
    the multi-function of voltage, thermal diode, thermistor and
    reserved from register VT_ADC_MD_REG to set value of vsen_mask &
    tcpu_mask & temp_mode in nct7904_data struct. If the value is
    reserved, needs to disable the vsen_mask & tcpu_mask.

    Signed-off-by: amy.shih <amy.shih@advantech.com.tw>
    Link: https://lore.kernel.org/r/20191014082451.2895-1-Amy.Shih@advantech.com.tw
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>

    amy.shih
     

02 Oct, 2019

2 commits

  • SMI# interrupt for fan and voltage is Two-Times Interrupt Mode.
    Fan or voltage exceeds high limit or going below low limit,
    it will causes an interrupt if the previous interrupt has been
    reset by reading all the interrupt Status Register. Thus, add the
    array fan_alarm and vsen_alarm to store the alarms for all of the
    fan and voltage sensors.

    Signed-off-by: amy.shih
    Link: https://lore.kernel.org/r/20190919030205.11440-1-Amy.Shih@advantech.com.tw
    Fixes: 486842db3b79 ("hwmon: (nct7904) Add extra sysfs support for fan, voltage and temperature.")
    Signed-off-by: Guenter Roeck

    amy.shih
     
  • Voltage sensors overlap with external temperature sensors. Detect
    the multi-function of voltage, thermal diode and thermistor from
    register VT_ADC_MD_REG to set value of vsen_mask in nct7904_data
    struct.

    Signed-off-by: amy.shih
    Link: https://lore.kernel.org/r/20190918084801.9859-1-Amy.Shih@advantech.com.tw
    Signed-off-by: Guenter Roeck

    amy.shih
     

23 Sep, 2019

1 commit

  • Pull MIPS updates from Paul Burton:
    "Main MIPS changes:

    - boot_mem_map is removed, providing a nice cleanup made possible by
    the recent removal of bootmem.

    - Some fixes to atomics, in general providing compiler barriers for
    smp_mb__{before,after}_atomic plus fixes specific to Loongson CPUs
    or MIPS32 systems using cmpxchg64().

    - Conversion to the new generic VDSO infrastructure courtesy of
    Vincenzo Frascino.

    - Removal of undefined behavior in set_io_port_base(), fixing the
    behavior of some MIPS kernel configurations when built with recent
    clang versions.

    - Initial MIPS32 huge page support, functional on at least Ingenic
    SoCs.

    - pte_special() is now supported for some configurations, allowing
    among other things generic fast GUP to be used.

    - Miscellaneous fixes & cleanups.

    And platform specific changes:

    - Major improvements to Ingenic SoC support from Paul Cercueil,
    mostly enabled by the inclusion of the new TCU (timer-counter unit)
    drivers he's spent a very patient year or so working on. Plus some
    fixes for X1000 SoCs from Zhou Yanjie.

    - Netgear R6200 v1 systems are now supported by the bcm47xx platform.

    - DT updates for BMIPS, Lantiq & Microsemi Ocelot systems"

    * tag 'mips_5.4' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux: (89 commits)
    MIPS: Detect bad _PFN_SHIFT values
    MIPS: Disable pte_special() for MIPS32 with RiXi
    MIPS: ralink: deactivate PCI support for SOC_MT7621
    mips: compat: vdso: Use legacy syscalls as fallback
    MIPS: Drop Loongson _CACHE_* definitions
    MIPS: tlbex: Remove cpu_has_local_ebase
    MIPS: tlbex: Simplify r3k check
    MIPS: Select R3k-style TLB in Kconfig
    MIPS: PCI: refactor ioc3 special handling
    mips: remove ioremap_cachable
    mips/atomic: Fix smp_mb__{before,after}_atomic()
    mips/atomic: Fix loongson_llsc_mb() wreckage
    mips/atomic: Fix cmpxchg64 barriers
    MIPS: Octeon: remove duplicated include from dma-octeon.c
    firmware: bcm47xx_nvram: Allow COMPILE_TEST
    firmware: bcm47xx_nvram: Correct size_t printf format
    MIPS: Treat Loongson Extensions as ASEs
    MIPS: Remove dev_err() usage after platform_get_irq()
    MIPS: dts: mscc: describe the PTP ready interrupt
    MIPS: dts: mscc: describe the PTP register range
    ...

    Linus Torvalds
     

19 Sep, 2019

1 commit

  • Pull driver core updates from Greg Kroah-Hartman:
    "Here is the big driver core update for 5.4-rc1.

    There was a bit of a churn in here, with a number of core and OF
    platform patches being added to the tree, and then after much
    discussion and review and a day-long in-person meeting, they were
    decided to be reverted and a new set of patches is currently being
    reviewed on the mailing list.

    Other than that churn, there are two "persistent" branches in here
    that other trees will be pulling in as well during the merge window.
    One branch to add support for drivers to have the driver core
    automatically add sysfs attribute files when a driver is bound to a
    device so that the driver doesn't have to manually do it (and then
    clean it up, as it always gets it wrong).

    There's another branch in here for generic lookup helpers for the
    driver core that lots of busses are starting to use. That's the
    majority of the non-driver-core changes in this patch series.

    There's also some on-going debugfs file creation cleanup that has been
    slowly happening over the past few releases, with the goal to
    hopefully get that done sometime next year.

    All of these have been in linux-next for a while now with no reported
    issues"

    [ Note that the above-mentioned generic lookup helpers branch was
    already brought in by the LED merge (commit 4feaab05dc1e) that had
    shared it.

    Also note that that common branch introduced an i2c bug due to a bad
    conversion, which got fixed here. - Linus ]

    * tag 'driver-core-5.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (49 commits)
    coccinelle: platform_get_irq: Fix parse error
    driver-core: add include guard to linux/container.h
    sysfs: add BIN_ATTR_WO() macro
    driver core: platform: Export platform_get_irq_optional()
    hwmon: pwm-fan: Use platform_get_irq_optional()
    driver core: platform: Introduce platform_get_irq_optional()
    Revert "driver core: Add support for linking devices during device addition"
    Revert "driver core: Add edit_links() callback for drivers"
    Revert "of/platform: Add functional dependency link from DT bindings"
    Revert "driver core: Add sync_state driver/bus callback"
    Revert "of/platform: Pause/resume sync state during init and of_platform_populate()"
    Revert "of/platform: Create device links for all child-supplier depencencies"
    Revert "of/platform: Don't create device links for default busses"
    Revert "of/platform: Fix fn definitons for of_link_is_valid() and of_link_property()"
    Revert "of/platform: Fix device_links_supplier_sync_state_resume() warning"
    Revert "of/platform: Disable generic device linking code for PowerPC"
    devcoredump: fix typo in comment
    devcoredump: use memory_read_from_buffer
    of/platform: Disable generic device linking code for PowerPC
    device.h: Fix warnings for mismatched parameter names in comments
    ...

    Linus Torvalds
     

18 Sep, 2019

1 commit

  • Pull documentation updates from Jonathan Corbet:
    "It's a somewhat calmer cycle for docs this time, as the churn of the
    mass RST conversion is happily mostly behind us.

    - A new document on reproducible builds.

    - We finally got around to zapping the documentation for hardware
    support that was removed in 2004; one doesn't want to rush these
    things.

    - The usual assortment of fixes, typo corrections, etc"

    * tag 'docs-5.4' of git://git.lwn.net/linux: (67 commits)
    Documentation: kbuild: Add document about reproducible builds
    docs: printk-formats: Stop encouraging use of unnecessary %h[xudi] and %hh[xudi]
    Documentation: Add "earlycon=sbi" to the admin guide
    doc:lock: remove reference to clever use of read-write lock
    devices.txt: improve entry for comedi (char major 98)
    docs: mtd: Update spi nor reference driver
    doc: arm64: fix grammar dtb placed in no attributes region
    Documentation: sysrq: don't recommend 'S' 'U' before 'B'
    mailmap: Update email address for Quentin Perret
    docs: ftrace: clarify when tracing is disabled by the trace file
    docs: process: fix broken link
    Documentation/arm/samsung-s3c24xx: Remove stray U+FEFF character to fix title
    Documentation/arm/sa1100/assabet: Fix 'make assabet_defconfig' command
    Documentation/arm/sa1100: Remove some obsolete documentation
    docs/zh_CN: update Chinese howto.rst for latexdocs making
    Documentation: virt: Fix broken reference to virt tree's index
    docs: Fix typo on pull requests guide
    kernel-doc: Allow anonymous enum
    Documentation: sphinx: Don't parse socket() as identifier reference
    Documentation: sphinx: Add missing comma to list of strings
    ...

    Linus Torvalds
     

17 Sep, 2019

1 commit

  • Pull ARM SoC driver updates from Arnd Bergmann:
    "This contains driver changes that are tightly connected to SoC
    specific code. Aside from smaller cleanups and bug fixes, here is a
    list of the notable changes.

    New device drivers:

    - The Turris Mox router has a new "moxtet" bus driver for its
    on-board pluggable extension bus. The same platform also gains a
    firmware driver.

    - The Samsung Exynos family gains a new Chipid driver exporting using
    the soc device sysfs interface

    - A similar socinfo driver for Qualcomm Snapdragon chips.

    - A firmware driver for the NXP i.MX DSP IPC protocol using shared
    memory and a mailbox

    Other changes:

    - The i.MX reset controller driver now supports the NXP i.MX8MM chip

    - Amlogic SoC specific drivers gain support for the S905X3 and A311D
    chips

    - A rework of the TI Davinci framebuffer driver to allow important
    cleanups in the platform code

    - A couple of device drivers for removed ARM SoC platforms are
    removed. Most of the removals were picked up by other maintainers,
    this contains whatever was left"

    * tag 'armsoc-drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: (123 commits)
    bus: uniphier-system-bus: use devm_platform_ioremap_resource()
    soc: ti: ti_sci_pm_domains: Add support for exclusive and shared access
    dt-bindings: ti_sci_pm_domains: Add support for exclusive and shared access
    firmware: ti_sci: Allow for device shared and exclusive requests
    bus: imx-weim: remove incorrect __init annotations
    fbdev: remove w90x900/nuc900 platform drivers
    spi: remove w90x900 driver
    net: remove w90p910-ether driver
    net: remove ks8695 driver
    firmware: turris-mox-rwtm: Add sysfs documentation
    firmware: Add Turris Mox rWTM firmware driver
    dt-bindings: firmware: Document cznic,turris-mox-rwtm binding
    bus: moxtet: fix unsigned comparison to less than zero
    bus: moxtet: remove set but not used variable 'dummy'
    ARM: scoop: Use the right include
    dt-bindings: power: add Amlogic Everything-Else power domains bindings
    soc: amlogic: Add support for Everything-Else power domains controller
    fbdev: da8xx: use resource management for dma
    fbdev: da8xx-fb: drop a redundant if
    fbdev: da8xx-fb: use devm_platform_ioremap_resource()
    ...

    Linus Torvalds
     

13 Sep, 2019

1 commit


11 Sep, 2019

2 commits

  • Add support for the Sensirion SHTC3 humidity and temperature sensor to
    the shtc1 module.

    Signed-off-by: Dan Robertson
    Link: https://lore.kernel.org/r/20190905014554.21658-2-dan@dlrobertson.com
    Signed-off-by: Guenter Roeck

    Dan Robertson
     
  • Fix an error in the bitmaskfor the shtc1 and shtw1 bitmask used to
    retrieve the chip ID from the ID register. See section 5.7 of the shtw1
    or shtc1 datasheet for details.

    Fixes: 1a539d372edd9832444e7a3daa710c444c014dc9 ("hwmon: add support for Sensirion SHTC1 sensor")
    Signed-off-by: Dan Robertson
    Link: https://lore.kernel.org/r/20190905014554.21658-3-dan@dlrobertson.com
    [groeck: Reordered to be first in series and adjusted accordingly]
    Signed-off-by: Guenter Roeck

    Dan Robertson
     

05 Sep, 2019

1 commit


04 Sep, 2019

9 commits

  • And simplify the error handling.

    Signed-off-by: Wolfram Sang
    Link: https://lore.kernel.org/r/20190903181256.13450-4-wsa+renesas@sang-engineering.com
    Signed-off-by: Guenter Roeck

    Wolfram Sang
     
  • And simplify the error handling.

    Signed-off-by: Wolfram Sang
    Link: https://lore.kernel.org/r/20190903181256.13450-3-wsa+renesas@sang-engineering.com
    Signed-off-by: Guenter Roeck

    Wolfram Sang
     
  • And simplify the error handling.

    Signed-off-by: Wolfram Sang
    Link: https://lore.kernel.org/r/20190903181256.13450-2-wsa+renesas@sang-engineering.com
    Signed-off-by: Guenter Roeck

    Wolfram Sang
     
  • Use devm_platform_ioremap_resource helper which wraps
    platform_get_resource() and devm_ioremap_resource() together.

    Generated by: scripts/coccinelle/api/devm_platform_ioremap_resource.cocci

    Fixes: 658e687b4218 ("hwmon: Add Synaptics AS370 PVT sensor driver")
    CC: Jisheng Zhang
    Signed-off-by: kbuild test robot
    Signed-off-by: Julia Lawall
    Reviewed-by: Jisheng Zhang
    Link: https://lore.kernel.org/r/alpine.DEB.2.21.1909030646180.3228@hadrien
    Signed-off-by: Guenter Roeck

    kbuild test robot
     
  • For PCT7027, the sampling period is configured using a dedicated
    register.

    Signed-off-by: Guenter Roeck

    Guenter Roeck
     
  • TMP112 uses an uncommon method to write the conversion time: its
    configuration register is 16 bit wide, and the conversion time is
    configured in its second byte.

    Signed-off-by: Guenter Roeck

    Guenter Roeck
     
  • We'll need per-chip handling for updating the sample interval.
    To prepare for it, separate the code implementing it into its own
    function.

    Signed-off-by: Guenter Roeck

    Guenter Roeck
     
  • The conversion (sample) time is configurable for several chips supported
    by the lm75 driver. With the necessary infrastructure in place, enable
    this support for all chips using the configuration register for this
    purpose.

    DS1775:
    Conversion time: 187.5, 375, 750, 1500 ms
    Sensor resolution: 9, 10, 11, 12 bit
    DS75, STDS75:
    Conversion time: 150, 300, 600, 1200 ms
    Sensor resolution: 9, 10, 11, 12 bit
    DS7505:
    Conversion time: 25, 50, 100, 200 ms
    Sensor resolution: 9, 10, 11, 12 bit
    MCP980[0123]:
    Conversion time: 75, 150, 300, 600 ms
    Sensor resolution: 9, 10, 11, 12 bit
    TMP100, TMP101:
    Conversion time: 75, 150, 300, 600 ms
    Sensor resolution: 9, 10, 11, 12 bit
    TMP75, TMP105, TMP175, TMP275:
    Conversion time: 38, 75, 150, 300 ms
    Sensor resolution: 9, 10, 11, 12 bit

    While doing this, it became obvious that the masks and values to set
    the converion (sample) time is similar for all those chips, and that
    other chips with configurable sample times will need separate code anyway.
    For that reason, replace the sample_set_masks and sample_clr_mask
    configuration parameters with a single array and with a constant.

    Signed-off-by: Guenter Roeck

    Guenter Roeck
     
  • According to kernel hwmon sysfs-interface documentation, temperature
    critical max value, typically greater than corresponding temp_max values.
    Thus, reads the LTD_HV_HL (LTD HIGH VALUE HIGH LIMITATION) and LTD_LV_HL
    (LTD LOW VALUE HIGH LIMITATION) for case hwmon_temp_crit and
    hwmon_temp_crit_hyst. Reads the LTD_HV_LL (HIGH VALUE LOW LIMITATION)
    and LTD_LV_LL (LOW VALUE LOW LIMITATION) for case hwmon_temp_max
    and hwmon_temp_max_hyst.

    Signed-off-by: amy.shih
    Link: https://lore.kernel.org/r/20850618155720.24857-1-Amy.Shih@advantech.com.tw
    Signed-off-by: Guenter Roeck

    amy.shih