Skip to content

hwmon (pmbus): cffps: Add debugfs entries

Eddie James linux-hwmon lkml 3 versions – Applied

Status from this message: Applied to hwmon-next.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 2 repliesApplied
  2. v22 patches 0 repliesSuperseded
  3. v12 patches 4 repliesSuperseded

Changes in v3 from the cover letter

- CCIN is big-endian and has to be swapped.

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2hwmon (pmbus): Export pmbus device debugfs directory entrydrivers/hwmon/pmbus/pmbus.h drivers/hwmon/pmbus/pmbus_core.c+10 -01 reply
2/2hwmon (pmbus): cffps: Add debugfs entriesdrivers/hwmon/pmbus/ibm-cffps.c+201 -11 reply

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/2] hwmon (pmbus): cffps: Add debugfs entries

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

This series enables debugfs entries in the IBM common form factor power supply driver. In order to avoid multiple debugfs directories for the same driver, the first patch in the series allows a pmbus client driver to query pmbus core for it's debugfs directory.

The second patch in the series adds debugfs files for a number of attributes of the power supply, including FRU (field replaceable unit) number, firmware version, part number, serial number, and CCIN. There is also an entry for the psu "input history" in binary format. This data represents previous 10 minutes of power supply data.

Changes since v2:
- CCIN is big-endian and has to be swapped.

Changes since v1:
- Check for debugfs directory before allocating memory.
- Add cffps1 sub-directory for the debugfs entries.
- Always set last_update to jiffies - HZ.
- Add EXPORT_SYMBOL_GPL for pmbus_get_debugfs_dir().

Edward A. James (2):
hwmon (pmbus): Export pmbus device debugfs directory entry hwmon (pmbus): cffps: Add debugfs entries

 drivers/hwmon/pmbus/ibm-cffps.c  | 202 ++++++++++++++++++++++++++++++++++++++-
 drivers/hwmon/pmbus/pmbus.h      |   2 +
 drivers/hwmon/pmbus/pmbus_core.c |   8 ++
 3 files changed, 211 insertions(+), 1 deletion(-)
Signature · 1 line
1.8.3.1