lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 12 Apr 2023 18:33:30 +0300
From:   Daniel Matyas <daniel.matyas@...log.com>
To:     unlisted-recipients:; (no To-header on input)
CC:     Daniel Matyas <daniel.matyas@...log.com>,
        Jean Delvare <jdelvare@...e.com>,
        Guenter Roeck <linux@...ck-us.net>,
        Rob Herring <robh+dt@...nel.org>,
        Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
        Jonathan Corbet <corbet@....net>,
        <linux-hwmon@...r.kernel.org>, <devicetree@...r.kernel.org>,
        <linux-kernel@...r.kernel.org>, <linux-doc@...r.kernel.org>
Subject: [PATCH v2 0/2] Hwmon driver for MAX31827 temperature switch

There are new functionalities: max_alarm, min_alarm and update_interval.

Modified enable attribute: it switches between 1Hz periodic conversions
and shutdown mode.

When requesting a temperature read in shutdown mode 1shot is triggered,
the driver waits until the conversion is completed and then displays the
read value.

Added new write_alarm_val function which puts the device in shutdown
mode, modifies the value of an alarm attribute and the reenables the
device with the previous configurations. I used more bitwise operations
in this functions instead of regmap_update_bits, because this way only 2
write and 2 read operations are performed. With regmap_update_bits 3
write operations and 2 read operations would be performed.

Added support for the other 2 chips from the datasheet: max31828,
max31829.

Added documentation for the driver. 

Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/max31827-max31829.pdf

*** BLURB HERE ***

Daniel Matyas (2):
  dt-bindings: hwmon: add MAX31827
  hwmon: max31827: add MAX31827 driver

 .../bindings/hwmon/adi,max31827.yaml          |  51 +++
 Documentation/hwmon/max31827.rst              |  88 +++++
 MAINTAINERS                                   |   9 +
 drivers/hwmon/Kconfig                         |  11 +
 drivers/hwmon/Makefile                        |   1 +
 drivers/hwmon/max31827.c                      | 324 ++++++++++++++++++
 6 files changed, 484 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/hwmon/adi,max31827.yaml
 create mode 100644 Documentation/hwmon/max31827.rst
 create mode 100644 drivers/hwmon/max31827.c

-- 
2.34.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ