Skip to content
Permalink
Marcello-Sylve…
Switch branches/tags

Commits on Feb 11, 2022

  1. pmbus (pli1209bc): Add regulator support

    Add regulator support for PLI1209BC Digital Supervisor.
    
    Signed-off-by: Marcello Sylvester Bauer <sylv@sylv.io>
    sylv-io authored and intel-lab-lkp committed Feb 11, 2022
  2. pmbus: Add support for pli1209bc

    PLI1209BC is a Digital Supervisor from Vicor Corporation.
    
    Signed-off-by: Marcello Sylvester Bauer <sylv@sylv.io>
    sylv-io authored and intel-lab-lkp committed Feb 11, 2022
  3. dt-bindings:trivial-devices: Add pli1209bc

    Add trivial device entry for PLI1209BC Digital Supervisor from Vicor
    Corporation.
    
    Signed-off-by: Marcello Sylvester Bauer <sylv@sylv.io>
    sylv-io authored and intel-lab-lkp committed Feb 11, 2022
  4. dt-bindings: vendor-prefixes: add Vicor Corporation

    Add vendor prefix for Vicor Corporation.
    
    Signed-off-by: Marcello Sylvester Bauer <sylv@sylv.io>
    sylv-io authored and intel-lab-lkp committed Feb 11, 2022

Commits on Feb 8, 2022

  1. hwmon: (asus-ec-sensors) add CPU core voltage

    A user discovered [1] the CPU Core voltage sensor, which spans 2
    registers and provides output in mV. Althroug the discovery was made
    with a X470 chipset, the sensor is present in X570 (tested with C8H).
    For now simply add it to each board with the CPU current sensor present.
    
    [1] zeule/asus-ec-sensors#12
    
    Signed-off-by: Eugene Shalygin <eugene.shalygin@gmail.com>
    Tested-by: Oleksandr Natalenko <oleksandr@natalenko.name>
    Tested-by: Denis Pauk <pauk.denis@gmail.com>
    Link: https://lore.kernel.org/r/20220208094244.1106312-1-eugene.shalygin@gmail.com
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    zeule authored and groeck committed Feb 8, 2022

Commits on Feb 7, 2022

  1. hwmon: (adt7x10) Use hwmon_notify_event

    The hwmon subsystem provides means of notifying userspace
    about events. Use it.
    
    Signed-off-by: Cosmin Tanislav <cosmin.tanislav@analog.com>
    Link: https://lore.kernel.org/r/20211221215841.2641417-8-demonsingur@gmail.com
    [groeck: Pass hwmon device to interrupt handler]
    Tested-by: Cosmin Tanislav <cosmin.tanislav@analog.com>
    Reviewed-by: Cosmin Tanislav <cosmin.tanislav@analog.com>
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    Demon000 authored and groeck committed Feb 7, 2022
  2. hwmon: (adt7x10) Remove empty driver removal callback

    Not used to do anything anymore.
    
    Signed-off-by: Cosmin Tanislav <cosmin.tanislav@analog.com>
    Link: https://lore.kernel.org/r/20211221215841.2641417-6-demonsingur@gmail.com
    Tested-by: Cosmin Tanislav <cosmin.tanislav@analog.com>
    Reviewed-by: Cosmin Tanislav <cosmin.tanislav@analog.com>
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    Demon000 authored and groeck committed Feb 7, 2022
  3. hwmon: (adt7x10) Use devm_request_threaded_irq

    To simplify the core driver remove function.
    
    Signed-off-by: Cosmin Tanislav <cosmin.tanislav@analog.com>
    Link: https://lore.kernel.org/r/20211221215841.2641417-5-demonsingur@gmail.com
    Tested-by: Cosmin Tanislav <cosmin.tanislav@analog.com>
    Reviewed-by: Cosmin Tanislav <cosmin.tanislav@analog.com>
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    Demon000 authored and groeck committed Feb 7, 2022
  4. hwmon: (adt7x10) Use devm_hwmon_device_register_with_info

    Describe the only available channel, implement read, write
    and is_visible callbacks.
    Also, pass name to core driver for the i2c device so that
    it can be used to register hwmon device.
    
    Signed-off-by: Cosmin Tanislav <cosmin.tanislav@analog.com>
    Link: https://lore.kernel.org/r/20211221215841.2641417-4-demonsingur@gmail.com
    [groeck: Adjusted to use regmap]
    Tested-by: Cosmin Tanislav <cosmin.tanislav@analog.com>
    Reviewed-by: Cosmin Tanislav <cosmin.tanislav@analog.com>
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    Demon000 authored and groeck committed Feb 7, 2022
  5. hwmon: (adt7x10) Add device managed action for restoring config

    To simplify the core driver remove function.
    
    Signed-off-by: Cosmin Tanislav <cosmin.tanislav@analog.com>
    Link: https://lore.kernel.org/r/20211221215841.2641417-3-demonsingur@gmail.com
    [groeck: Adjust to use regmap; only register restore function if needed]
    Tested-by: Cosmin Tanislav <cosmin.tanislav@analog.com>
    Reviewed-by: Cosmin Tanislav <cosmin.tanislav@analog.com>
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    Demon000 authored and groeck committed Feb 7, 2022
  6. hwmon: (adt7x10) Convert to use regmap

    Using regmap lets us use the regmap subsystem for SPI vs. I2C register
    accesses. It lets us hide access differences in backend code and lets
    the common code just access registers without knowing their size.
    We can also use regmap for register caching.
    
    Tested-by: Cosmin Tanislav <cosmin.tanislav@analog.com>
    Reviewed-by: Cosmin Tanislav <cosmin.tanislav@analog.com>
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    groeck committed Feb 7, 2022
  7. hwmon: (nct6775) add ASUS ROG STRIX Z390/Z490/X570-* / PRIME X570-P

    Boards such as
    * PRIME X570-P,
    * ROG STRIX B550-F GAMING WIFI II,
    * ROG STRIX B550-XE GAMING (WI-FI),
    * ROG STRIX X570-E GAMING,
    * ROG STRIX Z390-F GAMING,
    * ROG STRIX Z390-H GAMING,
    * ROG STRIX Z390-I GAMING,
    * ROG STRIX Z490-A GAMING,
    * ROG STRIX Z490-E GAMING,
    * ROG STRIX Z490-F GAMING,
    * ROG STRIX Z490-G GAMING,
    * ROG STRIX Z490-G GAMING (WI-FI),
    * ROG STRIX Z490-H GAMING
    have got a nct6775 chip, but by default there's no use of it
    because of resource conflict with WMI method.
    
    This commit adds such boards to the WMI monitoring list.
    
    BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=204807
    Signed-off-by: Denis Pauk <pauk.denis@gmail.com>
    Tested-by: Per Melin <kernel@melin.net>
    Tested-by: Jaap de Haan <jaap.dehaan@freenet.de>
    Link: https://lore.kernel.org/r/20220207214815.10995-1-pauk.denis@gmail.com
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    0lvin authored and groeck committed Feb 7, 2022

Commits on Feb 5, 2022

  1. hwmon: (asus-ec-sensors) read sensors as signed ints

    Temperature sensor readings are signed, which is hinted by their blank
    value (oxd8, 216 as unsigned and -40 as signed). T_Sensor, Crosshair
    VIII Hero, and a freezer were used to confirm that.
    
    Here we read fan sensors as signed too, because with their typical
    values and 2-byte width, I can't tell a difference between signed and
    unsigned, as I don't have a high speed chipset fan.
    
    Signed-off-by: Eugene Shalygin <eugene.shalygin@gmail.com>
    Link: https://lore.kernel.org/r/20220204163045.576903-1-eugene.shalygin@gmail.com
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    zeule authored and groeck committed Feb 5, 2022
  2. hwmon: (asus-ec-sensors) fix a typo in asus_ec_probe()

    There is no such struct as "asus_ec_sensors", it was supposed to be
    "ec_sensors_data".  This typo does not affect either build or runtime.
    
    Fixes: c4b1687 ("hwmon: (asus-ec-sensors) add driver for ASUS EC")
    Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
    Link: https://lore.kernel.org/r/20220205092015.GA612@kili
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    error27 authored and groeck committed Feb 5, 2022
  3. hwmon: (asus-ec-sensors) Add Crosshair VIII Hero WiFi

    The Wi-Fi variant of Crosshair VIII Hero provides the same sensors,
    which was tested by a Libre Hardware Monitor user [1].
    
    [1] LibreHardwareMonitor/LibreHardwareMonitor#453 (comment)
    
    Signed-off-by: Eugene Shalygin <eugene.shalygin@gmail.com>
    Link: https://lore.kernel.org/r/20220203203052.441712-1-eugene.shalygin@gmail.com
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    zeule authored and groeck committed Feb 5, 2022
  4. hwmon: (max6639) Add regulator support

    Add regulator support for boards where the fan-supply have to be
    powered up before it can be used.
    
    Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
    Signed-off-by: Marcello Sylvester Bauer <sylv@sylv.io>
    Link: https://lore.kernel.org/r/2cb9ed600fb43cdc604799746fbde2e2942cdca6.1643299570.git.sylv@sylv.io
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    sylv-io authored and groeck committed Feb 5, 2022
  5. hwmon: (max6639) Update Datasheet URL

    The old Datasheet does not exist anymore.
    
    Signed-off-by: Marcello Sylvester Bauer <sylv@sylv.io>
    Link: https://lore.kernel.org/r/76025f40d2684dc0d3ec02c8899b726b07a0e7da.1643299570.git.sylv@sylv.io
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    sylv-io authored and groeck committed Feb 5, 2022
  6. hwmon: (mlxreg-fan) Use pwm attribute for setting fan speed low limit

    Recently 'cur_state' user space 'sysfs' interface 'sysfs' has been
    deprecated. This interface is used in Nvidia systems for setting fan
    speed limit. Currently fan speed limit is set from the user space by
    setting 'sysfs' 'cur_state' attribute to 'max_state + n', where 'n' is
    required limit, for example: 15 for 50% speed limit, 20 for full fan
    speed enforcement.
    The purpose of this feature is to provides ability to limit fan speed
    according to some system wise considerations, like absence of some
    replaceable units (PSU or line cards), high system ambient temperature,
    unreliable transceivers temperature sensing or some other factors which
    indirectly impacts system's airflow.
    
    The motivation is to support fan low limit feature through 'hwmon'
    interface.
    
    Use 'hwmon' 'pwm' attribute for setting low limit for fan speed in
    case 'thermal' subsystem is configured in kernel. In this case setting
    fan speed through 'hwmon' will never let the 'thermal' subsystem to
    select a lower duty cycle than the duty cycle selected with the 'pwm'
    attribute.
    From other side, fan speed is to be updated in hardware through 'pwm'
    only in case the requested fan speed is above last speed set by
    'thermal' subsystem, otherwise requested fan speed will be just stored
    with no PWM update.
    
    Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
    Link: https://lore.kernel.org/r/20220126141825.13545-1-vadimp@nvidia.com
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    vadimp-nvidia authored and groeck committed Feb 5, 2022
  7. hwmon: deprecate asis_wmi_ec_sensors driver

    Deprecate the asus_wmi_ec_sensors driver in favor of the asus_ec_sensors
    
    Signed-off-by: Eugene Shalygin <eugene.shalygin@gmail.com>
    Reviewed-by: Oleksandr Natalenko <oleksandr@natalenko.name>
    Link: https://lore.kernel.org/r/20220124015658.687309-4-eugene.shalygin@gmail.com
    Tested-by: Oleksandr Natalenko <oleksandr@natalenko.name>
    Tested-by: Denis Pauk <pauk.denis@gmail.com>
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    zeule authored and groeck committed Feb 5, 2022
  8. hwmon: (asus-ec-sensors) update documentation

    Signed-off-by: Eugene Shalygin <eugene.shalygin@gmail.com>
    Link: https://lore.kernel.org/r/20220124015658.687309-3-eugene.shalygin@gmail.com
    Tested-by: Oleksandr Natalenko <oleksandr@natalenko.name>
    Tested-by: Denis Pauk <pauk.denis@gmail.com>
    [groeck: update index.rst, do not drop asus_wmi_ec_sensors.rst]
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    zeule authored and groeck committed Feb 5, 2022
  9. hwmon: (asus-ec-sensors) add driver for ASUS EC

    This driver provides the same data as the asus_wmi_ec_sensors driver
    (and gets it from the same source) but does not use WMI, polling
    the ACPI EC directly.
    
    That provides two enhancements: sensor reading became quicker (on some
    systems or kernel configuration it took almost a full second to read
    all the sensors, that transfers less than 15 bytes of data), the driver
    became more flexible. The driver now relies on ACPI mutex to lock access
    to the EC in the same way as the WMI code does.
    
    Signed-off-by: Eugene Shalygin <eugene.shalygin@gmail.com>
    Link: https://lore.kernel.org/r/20220124015658.687309-2-eugene.shalygin@gmail.com
    Tested-by: Oleksandr Natalenko <oleksandr@natalenko.name>
    Tested-by: Denis Pauk <pauk.denis@gmail.com>
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    zeule authored and groeck committed Feb 5, 2022
  10. hwmon: (sch56xx-common) Replace WDOG_ACTIVE with WDOG_HW_RUNNING

    If the watchdog was already enabled by the BIOS after booting, the
    watchdog infrastructure needs to regularly send keepalives to
    prevent a unexpected reset.
    WDOG_ACTIVE only serves as an status indicator for userspace,
    we want to use WDOG_HW_RUNNING instead.
    
    Since my Fujitsu Esprimo P720 does not support the watchdog,
    this change is compile-tested only.
    
    Suggested-by: Guenter Roeck <linux@roeck-us.net>
    Fixes: fb55140 (watchdog: sch56xx: Use watchdog core)
    Signed-off-by: Armin Wolf <W_Armin@gmx.de>
    Link: https://lore.kernel.org/r/20220131211935.3656-5-W_Armin@gmx.de
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    Wer-Wolf authored and groeck committed Feb 5, 2022
  11. hwmon: (sch56xx-common) Replace msleep() with usleep_range()

    msleep(1) will often sleep more than 20ms, slowing down sensor
    and watchdog reads/writes. Use usleep_range() as recommended
    in timers-howto.rst to fix that.
    
    Tested on a Fujitsu Esprimo P720.
    
    Signed-off-by: Armin Wolf <W_Armin@gmx.de>
    Link: https://lore.kernel.org/r/20220131211935.3656-4-W_Armin@gmx.de
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    Wer-Wolf authored and groeck committed Feb 5, 2022
  12. hwmon: (sch56xx-common) Add automatic module loading on supported dev…

    …ices
    
    This patch enables the sch56xx-common module to get automatically
    loaded on supported machines.
    If a machine supports Fujitsu's SCH56XX-based hardware monitoring
    solutions, it contains a "Antiope"/" Antiope" dmi onboard device
    in case of the sch5627 or a "Theseus"/" Theseus" dmi onboard device
    in case of the sch5636.
    Since some machines like the Esprimo C700 have a seemingly faulty
    DMI table containing both onboard devices, the driver still needs
    to probe for the individual superio chip, which in presence of at
    least one DMI onboard device however can be considered safe.
    Also add a module parameter allowing for bypassing the
    DMI check.
    
    Tested on a Fujitsu Esprimo P720.
    
    Signed-off-by: Armin Wolf <W_Armin@gmx.de>
    Link: https://lore.kernel.org/r/20220131211935.3656-3-W_Armin@gmx.de
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    Wer-Wolf authored and groeck committed Feb 5, 2022
  13. hwmon: (sch56xx) Autoload modules on platform device creation

    Right now, when sch56xx-common has detected a SCH5627/SCH5636
    superio chip, the corresponding module is not automatically
    loaded.
    Fix that by adding the necessary device tables to both modules.
    
    Tested on a Fujitsu Esprimo P720.
    
    Signed-off-by: Armin Wolf <W_Armin@gmx.de>
    Link: https://lore.kernel.org/r/20220131211935.3656-2-W_Armin@gmx.de
    Reviewed-by: Hans de Goede <hdegoede@redhat.com>
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    Wer-Wolf authored and groeck committed Feb 5, 2022
  14. hwmon: Fix possible NULL pointer

    The recent addition of the label attribute added some code that read the
    "label" device property, without checking first that "dev" was non-NULL.
    
    Fix this issue by first checking that "dev" is non-NULL.
    
    Fixes: ccd98cb ("hwmon: Add "label" attribute")
    Signed-off-by: Paul Cercueil <paul@crapouillou.net>
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    pcercuei authored and groeck committed Feb 5, 2022
  15. hwmon: (powr1220) Add support for Lattice's POWR1014 power manager IC

    This patch adds support for Lattice's POWR1014 power manager IC.
    Read access to all the ADCs on the chip are supported through
    the "hwmon" "sysfs" files.
    
    The main differences of POWR1014 compared to POWR1220 are
    amount of VMON input lines: 10 on POWR1014 and 12 lines on POWR1220 and
    number of output control signals: 14 on POWR1014 and 20 on POWR1220.
    
    Signed-off-by: Michael Shych <michaelsh@nvidia.com>
    Reviewed-by: Vadim Pasternak <vadimp@nvidia.com>
    Link: https://lore.kernel.org/r/20220118075611.10665-4-michaelsh@nvidia.com
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    mshych authored and groeck committed Feb 5, 2022
  16. hwmon: (powr1220) Upgrade driver to support hwmon info infrastructure

    Reduce code by using devm_hwmon_device_register_with_groups() API by
    devm_hwmon_device_register_with_info() API.
    The motivation is to reduce code and to allow easy support for similar
    devices by the same driver.
    
    Signed-off-by: Michael Shych <michaelsh@nvidia.com>
    Reviewed-by: Vadim Pasternak <vadimp@nvidia.com>
    Link: https://lore.kernel.org/r/20220118075611.10665-3-michaelsh@nvidia.com
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    mshych authored and groeck committed Feb 5, 2022
  17. hwmon: (powr1220) Cosmetic changes

    Update code alignments.
    
    Signed-off-by: Michael Shych <michaelsh@nvidia.com>
    Link: https://lore.kernel.org/r/20220118075611.10665-2-michaelsh@nvidia.com
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    mshych authored and groeck committed Feb 5, 2022
  18. dt-bindings: hwmon: lm90: Drop Tegra specifics from example

    There's no need to complicate examples with a platform specific macro.
    It also complicates example parsing to figure out the number of
    interrupt cells in examples (based on bracketing).
    
    Signed-off-by: Rob Herring <robh@kernel.org>
    Link: https://lore.kernel.org/r/20220119015514.2441231-1-robh@kernel.org
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    robherring authored and groeck committed Feb 5, 2022
  19. hwmon: (pmbus) Remove trailing whitespaces from Kconfig file

    Fix checkpatch issues by removing trailing whitespaces in Kconfig.
    
    Signed-off-by: Marcello Sylvester Bauer <sylv@sylv.io>
    Link: https://lore.kernel.org/r/c984b88b136a1cde16ce52c5f818886653b0f84a.1642434222.git.sylv@sylv.io
    [groeck: Updated subject]
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    sylv-io authored and groeck committed Feb 5, 2022
  20. hwmon: (asus_wmi_sensors) add ASUS ROG STRIX B450-F GAMING II

    ASUS ROG STRIX B450-F GAMING II has support of the same WMI
    monitoring method as ASUS ROG STRIX B450-F GAMING.
    
    This commit adds "ASUS ROG STRIX B450-F GAMING II" to
    the list of boards that can be monitored using ASUS WMI.
    
    BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=204807
    Signed-off-by: Denis Pauk <pauk.denis@gmail.com>
    Tested-by: Aleksa Savic <savicaleksa83@gmail.com>
    Link: https://lore.kernel.org/r/20220112214917.11662-1-pauk.denis@gmail.com
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    0lvin authored and groeck committed Feb 5, 2022
  21. hwmon: (asus_wmi_ec_sensors) Support T_Sensor on Prime X570-Pro

    Asus Prime X570-Pro motherboards have a T_Sensor header that can be
    connected to an optional temperature probe.
    
    Signed-off-by: Anthony DeRossi <ajderossi@gmail.com>
    Link: https://lore.kernel.org/r/20220111051842.25634-1-ajderossi@gmail.com
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    anthonyde authored and groeck committed Feb 5, 2022
  22. Documentation: ABI: Add ABI file for legacy /proc/i8k interface

    Add ABI file for informing remaining users of the
    deprecation of the legacy /proc/i8k interface.
    
    Signed-off-by: Armin Wolf <W_Armin@gmx.de>
    Link: https://lore.kernel.org/r/20220109214248.61759-4-W_Armin@gmx.de
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    Wer-Wolf authored and groeck committed Feb 5, 2022
  23. Documentation: admin-guide: Add Documentation for undocumented dell_s…

    …mm_hwmon parameters
    
    Add documentation for fan_mult and fan_max.
    
    Signed-off-by: Armin Wolf <W_Armin@gmx.de>
    Link: https://lore.kernel.org/r/20220109214248.61759-3-W_Armin@gmx.de
    Signed-off-by: Guenter Roeck <linux@roeck-us.net>
    Wer-Wolf authored and groeck committed Feb 5, 2022
Older