Skip to content

hwmon: ina2xx: implement chip reinitialization and add new attributes

Bartosz Golaszewski lkml lm-sensors 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest5 patches 3 repliesIn review
  2. v7 posting 2/25 patches 0 repliesSuperseded
  3. v7 posting 1/25 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v65 patches1 replySuperseded

Changes in v8 from the cover letter

- accept averaging rate values more flexibly and round them to the nearest correct value
- don't call ina2xx_update_device() in ina226_set_avg()
- make sure the registers are going to be re-read after setting the averaging rate

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5hwmon: ina2xx: reinitialize the chip in case it's been resetdrivers/hwmon/ina2xx.c+91 -370 replies
2/5hwmon: ina2xx: remove a stray new linedrivers/hwmon/ina2xx.c+0 -10 replies
3/5hwmon: ina2xx: don't accept shunt values greater than the calibration factordrivers/hwmon/ina2xx.c+2 -10 replies
4/5hwmon: ina2xx: make shunt resistance configurable at run-timeDocumentation/hwmon/ina2xx drivers/hwmon/ina2xx.c+49 -40 replies
5/5hwmon: ina2xx: allow to change the averaging rate at run-timeDocumentation/hwmon/ina2xx drivers/hwmon/ina2xx.c+128 -42 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v8 yet.

Read the v8 thread

Cover letter [PATCH v8 0/5] hwmon: ina2xx: implement chip reinitialization and add new attributes

This series implements a mechanism to detect if the chip is in its POR state and reinitialize it if needed. It also extends the sysfs interface to make the driver configurable at run-time.

The shunt_resistor attribute allows to change the shunt resistance value at run-time in cases where ina2xx used to do the measurement isn't integrated with the shunt.

The avg_rate attribute allows to increase/decrease noise reduction.

v8:
- accept averaging rate values more flexibly and round them to the nearest correct value
- don't call ina2xx_update_device() in ina226_set_avg()
- make sure the registers are going to be re-read after setting the averaging rate

v7:
https://www.mail-archive.com/linux-kernel%40vger.kernel.org/msg787851.html

Bartosz Golaszewski (5):
hwmon: ina2xx: reinitialize the chip in case it's been reset
hwmon: ina2xx: remove a stray new line
hwmon: ina2xx: don't accept shunt values greater than the calibration factor
hwmon: ina2xx: make shunt resistance configurable at run-time
hwmon: ina2xx: allow to change the averaging rate at run-time

 Documentation/hwmon/ina2xx |   8 +-
 drivers/hwmon/ina2xx.c     | 301 +++++++++++++++++++++++++++++++++++++++------
 2 files changed, 266 insertions(+), 43 deletions(-)
Signature · 7 lines
2.1.3


_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors