public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v6 0/5] hwmon: ina2xx: implement chip reinitialization and add new attributes
@ 2014-12-12 14:37 Bartosz Golaszewski
  2014-12-12 14:37 ` [PATCH v6 1/5] hwmon: ina2xx: reinitialize the chip in case it's been reset Bartosz Golaszewski
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Bartosz Golaszewski @ 2014-12-12 14:37 UTC (permalink / raw)
  To: Guenter Roeck
  Cc: LKML, Benoit Cousson, Patrick Titiano, LM Sensors,
	Bartosz Golaszewski

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.

v6:
- moved the chip initialization and calibration to a separate function and
  extended the update_device function to check if the chip hasn't been
  reset and, if so, reinitialize it,
- added a new variable to struct ina2xx_data which holds current configuration
  value in order to be able to restore the config after a reset and reinit,
- decided to keep the rshunt value in ina2xx_data in order to be able to
  restore the shunt value when reinitializing the device,
- other minor fixes and improvements,

v5:
https://www.mail-archive.com/linux-kernel%40vger.kernel.org/msg785734.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     | 266 ++++++++++++++++++++++++++++++++++++++++-----
 2 files changed, 243 insertions(+), 31 deletions(-)

-- 
2.1.3


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-12-12 16:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-12 14:37 [PATCH v6 0/5] hwmon: ina2xx: implement chip reinitialization and add new attributes Bartosz Golaszewski
2014-12-12 14:37 ` [PATCH v6 1/5] hwmon: ina2xx: reinitialize the chip in case it's been reset Bartosz Golaszewski
2014-12-12 16:53   ` Guenter Roeck
2014-12-12 14:37 ` [PATCH v6 2/5] hwmon: ina2xx: remove a stray new line Bartosz Golaszewski
2014-12-12 14:37 ` [PATCH v6 3/5] hwmon: ina2xx: don't accept shunt values greater than the calibration factor Bartosz Golaszewski
2014-12-12 14:37 ` [PATCH v6 4/5] hwmon: ina2xx: make shunt resistance configurable at run-time Bartosz Golaszewski
2014-12-12 14:37 ` [PATCH v6 5/5] hwmon: ina2xx: allow to change the averaging rate " Bartosz Golaszewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox