Skip to content

hwmon: (pmbus): Core extension for STATUS_WORD and debugfs

Eddie James openbmc 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 5 repliesIn review
  2. v14 patches 0 repliesSuperseded

Changes in v2 from the cover letter

* Removed boolean to control whether or not to create debugfs attributes.
* Switch to scnprintf.
* Add module init and exit to control root pmbus debugfs directory.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4hwmon: (pmbus): Switch status registers to 16 bitdrivers/hwmon/pmbus/pmbus_core.c+7 -71 reply
2/4hwmon: (pmbus): Access word data for STATUS_WORDdrivers/hwmon/pmbus/pmbus_core.c+40 -141 reply
3/4hwmon: (pmbus): Add generic alarm bit for iin and pindrivers/hwmon/pmbus/pmbus_core.c+9 -13 replies
4/4hwmon: (pmbus): Add debugfs for status registersdrivers/hwmon/pmbus/pmbus_core.c+200 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH linux dev-4.10 v2 0/4] hwmon: (pmbus): Core extension for STATUS_WORD and debugfs

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

This series adds some functionality to the pmbus core.

The first two patches provide support for the STATUS_WORD register. This allows more default alarm attributes to be used, as the upper byte of the status register is available. The third patch then uses the STATUS_INPUT bit of the status register to setup boolean attributes for input voltage and input power attributes.

The fourth patch provides support for raw reads of pmbus status registers through the debugfs interface. These can be very useful for hardware diagnostics, especially on multi-page pmbus devices, as user-space access of the i2c space could corrupt the pmbus page accounting.

Changes since v1:
* Removed boolean to control whether or not to create debugfs attributes.
* Switch to scnprintf.
* Add module init and exit to control root pmbus debugfs directory.

Edward A. James (4):
hwmon: (pmbus): Switch status registers to 16 bit
hwmon: (pmbus): Access word data for STATUS_WORD
hwmon: (pmbus): Add generic alarm bit for iin and pin
hwmon: (pmbus): Add debugfs for status registers

 drivers/hwmon/pmbus/pmbus_core.c | 278 +++++++++++++++++++++++++++++++++++----
 1 file changed, 256 insertions(+), 22 deletions(-)
Signature · 1 line
1.8.3.1