mbox series

[v2,0/2] hwmon: (pmbus) Add the PMBUS_NO_CAPABILITY flag

Message ID 20201222152640.27749-1-eajames@linux.ibm.com (mailing list archive)
Headers show
Series hwmon: (pmbus) Add the PMBUS_NO_CAPABILITY flag | expand

Message

Eddie James Dec. 22, 2020, 3:26 p.m. UTC
Some PMBus chips, like some power supplies supported by the cffps driver,
don't respond with valid data when reading the CAPABILITY register. Add a
platform data flag that device drivers can set to tell the PMBus core
driver that it shouldn't use the CAPABILITY register. The second patch
sets this flag for the cffps driver.

Changes since v1:
 - Rename the flag to PMBUS_NO_CAPABILITY and adjust the associated
   comment accordingly.

Eddie James (2):
  hwmon: (pmbus) Add a PMBUS_NO_CAPABILITY platform data flag
  hwmon: (pmbus/ibm-cffps) Set the PMBUS_NO_CAPABILITY flag

 drivers/hwmon/pmbus/ibm-cffps.c  | 2 +-
 drivers/hwmon/pmbus/pmbus_core.c | 8 +++++---
 include/linux/pmbus.h            | 9 +++++++++
 3 files changed, 15 insertions(+), 4 deletions(-)