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

Christopher Bostic cbostic at linux.vnet.ibm.com
Thu Aug 31 07:49:50 AEST 2017


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

Patch 0001 Adds a user space means of clearing logged faults.  This ability is
useful in cases where one wants to start with a clean slate during each system
power on.

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

Patch 0003 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.

Patch 0003 (was patch v5-0002... previously) has been reviewed by Andrew Jeffery,
I did, however, add some small updates to this one:

* Remove ida in bad and unbind paths.
* Remove type ucd90160 check when adding debugfs. Add for all ucd9000 devs.
  Results in cleaner ida code in the remove path.

Christopher Bostic (3):
  hwmon: (ucd9000) Add interface to clear logged faults.
  hwmon: (ucd9000) Add gpio chip interface
  hwmon: (ucd9000) Add debugfs to list mfr_status info

 drivers/hwmon/pmbus/ucd9000.c | 415 +++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 413 insertions(+), 2 deletions(-)

-- 
1.8.2.2



More information about the openbmc mailing list