[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1512754969-6556-1-git-send-email-eajames@linux.vnet.ibm.com>
Date: Fri, 8 Dec 2017 11:42:47 -0600
From: Eddie James <eajames@...ux.vnet.ibm.com>
To: linux-hwmon@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, linux@...ck-us.net,
jdelvare@...e.com, eajames@...ux.vnet.ibm.com, joel@....id.au,
"Edward A. James" <eajames@...ibm.com>
Subject: [PATCH v2 0/2] hwmon (pmbus): cffps: Add debugfs entries
From: "Edward A. James" <eajames@...ibm.com>
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 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(-)
--
1.8.3.1
Powered by blists - more mailing lists