Home
last modified time | relevance | path

Searched hist:e7c6a556 (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/hwmon/pmbus/
H A Dpmbus.ce7c6a556 Mon Oct 15 04:21:22 CDT 2018 Dmitry Bazhenov <bazhenov.dn@gmail.com> hwmon: (pmbus) Fix page count auto-detection.

Devices with compatible="pmbus" field have zero initial page count,
and pmbus_clear_faults() being called before the page count auto-
detection does not actually clear faults because it depends on the
page count. Non-cleared faults in its turn may fail the subsequent
page count auto-detection.

This patch fixes this problem by calling pmbus_clear_fault_page()
for currently set page and calling pmbus_clear_faults() after the
page count was detected.

Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Bazhenov <bazhenov.dn@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
e7c6a556 Mon Oct 15 04:21:22 CDT 2018 Dmitry Bazhenov <bazhenov.dn@gmail.com> hwmon: (pmbus) Fix page count auto-detection.

Devices with compatible="pmbus" field have zero initial page count,
and pmbus_clear_faults() being called before the page count auto-
detection does not actually clear faults because it depends on the
page count. Non-cleared faults in its turn may fail the subsequent
page count auto-detection.

This patch fixes this problem by calling pmbus_clear_fault_page()
for currently set page and calling pmbus_clear_faults() after the
page count was detected.

Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Bazhenov <bazhenov.dn@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
H A Dpmbus_core.ce7c6a556 Mon Oct 15 04:21:22 CDT 2018 Dmitry Bazhenov <bazhenov.dn@gmail.com> hwmon: (pmbus) Fix page count auto-detection.

Devices with compatible="pmbus" field have zero initial page count,
and pmbus_clear_faults() being called before the page count auto-
detection does not actually clear faults because it depends on the
page count. Non-cleared faults in its turn may fail the subsequent
page count auto-detection.

This patch fixes this problem by calling pmbus_clear_fault_page()
for currently set page and calling pmbus_clear_faults() after the
page count was detected.

Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Bazhenov <bazhenov.dn@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>