lkml.org 
[lkml]   [2020]   [Dec]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 2/2] hwmon: (pmbus/ibm-cffps) Set the PMBUS_NO_CAPABILITY flag
    Date
    Several power supplies supported by the IBM CFFPS driver don't
    report valid data in the CAPABILITY register. This results in PEC
    being enabled when it's not supported by the device, and since
    the automatic version detection might fail, disable use of the
    CAPABILITY register across the board for this driver.

    Signed-off-by: Eddie James <eajames@linux.ibm.com>
    ---
    drivers/hwmon/pmbus/ibm-cffps.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/hwmon/pmbus/ibm-cffps.c b/drivers/hwmon/pmbus/ibm-cffps.c
    index d6bbbb223871..ffde5aaa5036 100644
    --- a/drivers/hwmon/pmbus/ibm-cffps.c
    +++ b/drivers/hwmon/pmbus/ibm-cffps.c
    @@ -472,7 +472,7 @@ static struct pmbus_driver_info ibm_cffps_info[] = {
    };

    static struct pmbus_platform_data ibm_cffps_pdata = {
    - .flags = PMBUS_SKIP_STATUS_CHECK,
    + .flags = PMBUS_SKIP_STATUS_CHECK | PMBUS_NO_CAPABILITY,
    };

    static int ibm_cffps_probe(struct i2c_client *client)
    --
    2.27.0
    \
     
     \ /
      Last update: 2020-12-22 16:29    [W:3.670 / U:0.272 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site