All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC linux dev-4.10 0/3] drivers/hwmon/pmbus: core extensions
@ 2017-08-07 23:04 Eddie James
  2017-08-07 23:04 ` [RFC linux dev-4.10 1/3] drivers/hwmon/pmbus: Use STATUS_WORD by default and do correct access Eddie James
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Eddie James @ 2017-08-07 23:04 UTC (permalink / raw)
  To: openbmc; +Cc: Edward A. James

From: "Edward A. James" <eajames@us.ibm.com>

This series adds some functionality to the pmbus core.

The first two patches are fixes to enable the use of the STATUS_WORD register
which was completely unused in existing pmbus. This allows the use of more
default alarm/fault attributes for default pmbus sensors.

The third patch adds "status" attributes to each class of hwmon sensor created
by pmbus. For example, in1_status and temp1_status. These will display the
associated raw status register (STATUS_INPUT and STATUS_TEMPERATURE). These
will probably be essential for the UCD driver, and certainly very convenient
for the power supply driver.

An alternative I considered was breaking all the status registers out into
bits, but some bits seem to be device-dependent and therefore couldn't be named
correctly or at all in the pmbus core. This would also really make the hwmon
directory messy, unless you have a separate directory for that, either in the
device directory or under the hwmon directory (not sure if that's even
possible).

Edward A. James (3):
  drivers/hwmon/pmbus: Use STATUS_WORD by default and do correct access
  drivers/hmwon/pmbus: store STATUS_WORD in status registers
  drivers/hwmon/pmbus: Add sensor status to pmbus attributes

 drivers/hwmon/pmbus/pmbus_core.c | 153 +++++++++++++++++++++++++++++++++------
 1 file changed, 130 insertions(+), 23 deletions(-)

-- 
1.8.3.1

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

end of thread, other threads:[~2017-08-07 23:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-07 23:04 [RFC linux dev-4.10 0/3] drivers/hwmon/pmbus: core extensions Eddie James
2017-08-07 23:04 ` [RFC linux dev-4.10 1/3] drivers/hwmon/pmbus: Use STATUS_WORD by default and do correct access Eddie James
2017-08-07 23:04 ` [RFC linux dev-4.10 2/3] drivers/hmwon/pmbus: store STATUS_WORD in status registers Eddie James
2017-08-07 23:04 ` [RFC linux dev-4.10 3/3] drivers/hwmon/pmbus: Add sensor status to pmbus attributes Eddie James

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.