linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] hwmon: (pmbus) Add ST STPDDC60 pmbus driver
@ 2021-02-18 11:52 Erik Rosen
  2021-02-18 11:52 ` [PATCH v3 1/2] hwmon: (pmbus) Add pmbus_set_update() function to set update flag Erik Rosen
  2021-02-18 11:52 ` [PATCH v3 2/2] hwmon: (pmbus/stpddc60) Add ST STPDDC60 pmbus driver Erik Rosen
  0 siblings, 2 replies; 5+ messages in thread
From: Erik Rosen @ 2021-02-18 11:52 UTC (permalink / raw)
  To: linux-kernel, linux-doc, linux-hwmon, Jonathan Corbet,
	Guenter Roeck, Jean Delvare
  Cc: Erik Rosen

This patch series adds hardware monitoring support for the ST STPDDC60
chip. The driver has been tested with a Flex BMR481 converter.

The checkpatch script complains about an unneeded paranthesis in an
if-statement but gcc gives a warning if it is removed.

v3
stpddc60_get_offset:
  -Change type from u8 to int for "offset" to avoid potential overflow in calculation
  -Simplify if-expression for checking limits

v2
-Remove "chips" enum since it is not used
-Remove stpddc60_vid2mv function
-Remove stpddc60_mv2l function
-Add stpddc60_get_offset function
-Add stpddc60_adjust_linear function
stpddc60_read_word_data:
  -Return the value reported by MFR_READ_VOUT to avoid having to convert from VID
  -Add explanation why only 11 bits are used
stpddc60_write_word_data:
  -Rewrite comment
  -Add support writing vout limits
  -Adjust linear exponent to match read value
-Use the probe_new function callback

Erik Rosen (2):
  Add pmbus_set_update() function to set update flag on selected sensors
  Add ST STPDDC60 pmbus driver

 Documentation/hwmon/index.rst    |   1 +
 Documentation/hwmon/stpddc60.rst |  90 +++++++++++
 MAINTAINERS                      |   7 +
 drivers/hwmon/pmbus/Kconfig      |  10 ++
 drivers/hwmon/pmbus/Makefile     |   2 +
 drivers/hwmon/pmbus/pmbus.h      |   1 +
 drivers/hwmon/pmbus/pmbus_core.c |  11 ++
 drivers/hwmon/pmbus/stpddc60.c   | 248 +++++++++++++++++++++++++++++++
 8 files changed, 370 insertions(+)
 create mode 100644 Documentation/hwmon/stpddc60.rst
 create mode 100644 drivers/hwmon/pmbus/stpddc60.c


base-commit: 6ee1d745b7c9fd573fba142a2efdad76a9f1cb04
-- 
2.20.1


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

end of thread, other threads:[~2021-03-11 22:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-18 11:52 [PATCH v3 0/2] hwmon: (pmbus) Add ST STPDDC60 pmbus driver Erik Rosen
2021-02-18 11:52 ` [PATCH v3 1/2] hwmon: (pmbus) Add pmbus_set_update() function to set update flag Erik Rosen
2021-03-11 22:00   ` Guenter Roeck
2021-02-18 11:52 ` [PATCH v3 2/2] hwmon: (pmbus/stpddc60) Add ST STPDDC60 pmbus driver Erik Rosen
2021-03-11 22:02   ` Guenter Roeck

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).