[PATCH linux dev-4.10 v8 0/2] Add user space accessibility for ucd9000 stats

Christopher Bostic cbostic at linux.vnet.ibm.com
Fri Sep 8 04:37:59 AEST 2017


This set provides means to allow user space to access various properties of the
ucd9000 type chips.

patch 0001 Adds gpio_chip interface for user to access various GPIO pin states
via the /sys/class/gpio interface.

Patch 0002 adds a debugfs for mfr_status information so user space can gain
visibility of gpi type faults. Note that there are limitations on type of devices
that debugfs supports.  Presently only ucd90160 is supported.  Any assumptions made
as to formatting of data is commented inline in the code.  Any expansion to other
ucd9000 types will need to take this into consideration.

Note also that no pinmux support is provided at this point.  The ucd9000 devs do
have mux capability so this should be added.

v6 patch 0001 which covers the addition of a 'clear logged faults' sysfs file is
now gone.   There are a few open questions in terms of requirements.
Specifically, why clear when no one reads the faults out?  This was pointed out
by Guenter Roeck.  Consequently v6 patch 0002 is now v7/v8 patch 0001,  v6 patch
0003 is v7/v8 patch 0002.

Christopher Bostic (2):
  hwmon: (ucd9000) Add gpio chip interface
  hwmon: (ucd9000) Add debugfs to list mfr_status info

 drivers/hwmon/pmbus/ucd9000.c | 369 +++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 368 insertions(+), 1 deletion(-)

-- 
1.8.2.2



More information about the openbmc mailing list