diff options
author | Vikash Chandola <vikash.chandola@intel.com> | 2022-02-23 08:39:44 +0300 |
---|---|---|
committer | Vikash Chandola <vikash.chandola@intel.com> | 2022-02-24 07:20:51 +0300 |
commit | 5f8f4cf93521a80e630f5e41459f4f6e0b2ca776 (patch) | |
tree | 92430f41b8bb1df5b4b92a1db2e6f86c20131500 | |
parent | e8b2774abc5edd91e85aedf45e8365b25f3a1adc (diff) | |
download | linux-5f8f4cf93521a80e630f5e41459f4f6e0b2ca776.tar.xz |
Revert "hwmon: (pmbus) Clear pmbus fault/warning bits before read"
This reverts commit 747840ee70ac06bd8e4ebad5d0c0d25009481644.
Better solution was found after conversation at linux-hwmon. Hence
reverting original downstream fix in favour of upstream fix.
Signed-off-by: Vikash Chandola <vikash.chandola@intel.com>
-rw-r--r-- | drivers/hwmon/pmbus/pmbus_core.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/hwmon/pmbus/pmbus_core.c b/drivers/hwmon/pmbus/pmbus_core.c index dbb6f56578bc..a4bf6f0fe013 100644 --- a/drivers/hwmon/pmbus/pmbus_core.c +++ b/drivers/hwmon/pmbus/pmbus_core.c @@ -587,15 +587,6 @@ static int pmbus_get_status(struct i2c_client *client, int page, int reg) break; default: status = _pmbus_read_byte_data(client, page, reg); - if (status > 0) { - /* - * Status greater than 0 could mean that there was a fault/warning. - * Clear faults and do a second read to make sure we are not getting - * stale values. - */ - pmbus_clear_fault_page(client, page); - status = _pmbus_read_byte_data(client, page, reg); - } break; } if (status < 0) |