Skip to content

RFC drivers/hwmon/pmbus: Use STATUS_WORD and add status sensors

Eddie James linux-hwmon 1 version NAK

Status from this message: NACK, sorry. As mentioned separately, please consider adding debugfs

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 8 repliesNAK

Patches in v1

#Subject and filesSizeRepliesApplied
1/3drivers/hwmon/pmbus: Access word data for STATUS_WORD and use it by defaultdrivers/hwmon/pmbus/pmbus_core.c+54 -151 reply
2/3drivers/hmwon/pmbus: store STATUS_WORD in status registersdrivers/hwmon/pmbus/pmbus_core.c+27 -101 reply
3/3drivers/hwmon/pmbus: Add sensor status to pmbus attributesdrivers/hwmon/pmbus/pmbus_core.c+51 -01 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC 0/3] drivers/hwmon/pmbus: Use STATUS_WORD and add status sensors

From: "Edward A. James" <[email protected]>

Hi Guenter,

I'm looking for some feedback for some extensions to the pmbus core. We're looking for some additional functionality, particularly with STATUS_WORD and obtaining raw status data.

The first two patches enable the use of the STATUS_WORD register in the pmbus core. This allows the use of more default alarm/fault attributes for default pmbus sensors by allowing the use of the higher byte status bits.

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 (e.g. STATUS_INPUT and STATUS_TEMPERATURE). I realize this is not really "normal" for hwmon or pmbus. These are potentially very useful in hardware diagnostic situations where it might be impossible to tell the origin of a failure from a simple alarm or fault bit set. We really want to access the status registers, and for a multi-page pmbus device, this is pretty tricky from userspace.

Please let me know your thoughts,
Thanks,

Edward A. James (3):
drivers/hwmon/pmbus: Access word data for STATUS_WORD and use it by
default
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(-)
Signature · 1 line
1.8.3.1