From: Bartosz Golaszewski <bgolaszewski@baylibre.com>
To: Guenter Roeck <linux@roeck-us.net>
Cc: LKML <linux-kernel@vger.kernel.org>,
Benoit Cousson <bcousson@baylibre.com>,
Patrick Titiano <ptitiano@baylibre.com>,
LM Sensors <lm-sensors@lm-sensors.org>,
Bartosz Golaszewski <bgolaszewski@baylibre.com>
Subject: [PATCH v8 0/5] hwmon: ina2xx: implement chip reinitialization and add new attributes
Date: Mon, 5 Jan 2015 15:20:51 +0100 [thread overview]
Message-ID: <1420467656-6112-1-git-send-email-bgolaszewski@baylibre.com> (raw)
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(-)
--
2.1.3
next reply other threads:[~2015-01-05 14:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-05 14:20 Bartosz Golaszewski [this message]
2015-01-05 14:20 ` [PATCH v8 1/5] hwmon: ina2xx: reinitialize the chip in case it's been reset Bartosz Golaszewski
2015-01-05 14:20 ` [PATCH v8 2/5] hwmon: ina2xx: remove a stray new line Bartosz Golaszewski
2015-01-05 14:20 ` [PATCH v8 3/5] hwmon: ina2xx: don't accept shunt values greater than the calibration factor Bartosz Golaszewski
2015-01-05 14:20 ` [PATCH v8 4/5] hwmon: ina2xx: make shunt resistance configurable at run-time Bartosz Golaszewski
2015-01-05 14:20 ` [PATCH v8 5/5] hwmon: ina2xx: allow to change the averaging rate " Bartosz Golaszewski
2015-01-06 18:18 ` [v8, " Guenter Roeck
2015-01-07 12:48 ` Bartosz Golaszewski
2015-01-06 18:21 ` [PATCH v8 0/5] hwmon: ina2xx: implement chip reinitialization and add new attributes Guenter Roeck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1420467656-6112-1-git-send-email-bgolaszewski@baylibre.com \
--to=bgolaszewski@baylibre.com \
--cc=bcousson@baylibre.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=lm-sensors@lm-sensors.org \
--cc=ptitiano@baylibre.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).