summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/pmbus/ibm-cffps.c
Commit message (Collapse)AuthorAgeFilesLines
* hwmon: (pmbus/cffps) Add led class device for power supply fault ledeajames@linux.vnet.ibm.com2018-01-111-8/+88
| | | | | | | | | This power supply device doesn't correctly manage it's own fault led. Add an led class device and register it so that userspace can manage power supply fault led as necessary. Signed-off-by: Eddie James <eajames@linux.vnet.ibm.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
* hwmon: (pmbus) cffps: Add PMBUS_SKIP_STATUS_CHECKEddie James2018-01-081-0/+6
| | | | | | | | | | | This power supply device regularly fails to read VOUT_MODE due to the CML bit going high. This results in an incorrect exponent used for the voltage data, and therefore the power supply reports incorrect voltage. Work around this by setting the pmbus flag to skip the CML check. Signed-off-by: Eddie James <eajames@linux.vnet.ibm.com> Fixes: f69316d62c70 ("hwmon: (pmbus) Add IBM Common Form Factor (CFF) ...") Signed-off-by: Guenter Roeck <linux@roeck-us.net>
* hwmon: (pmbus) cffps: Add debugfs entriesEdward A. James2018-01-031-1/+201
| | | | | | | | | | | | Add debugfs entries for additional power supply data, including part number, serial number, FRU number, firmware revision, ccin, and the input history of the power supply. The input history is 10 minutes of input power data in the form of twenty 30-second packets. Each packet contains average and maximum power for that 30 second period. Signed-off-by: Edward A. James <eajames@us.ibm.com> [groeck: Fixed endianness problem] Signed-off-by: Guenter Roeck <linux@roeck-us.net>
* hwmon: (pmbus) Add IBM Common Form Factor (CFF) power supply driverEdward A. James2017-08-301-0/+151
Add the driver to monitor IBM CFF power supplies with hwmon over pmbus. Signed-off-by: Edward A. James <eajames@us.ibm.com> [groeck: drop 'default n'; include bitops.h instead of jiffies.h] Signed-off-by: Guenter Roeck <linux@roeck-us.net>