linux-stable/drivers/hwmon/pmbus
Brandon Wyman e6ee35c475 hwmon: (pmbus) Add Vin unit off handling
[ Upstream commit a5436af598 ]

If there is an input undervoltage fault, reported in STATUS_INPUT
command response, there is quite likely a "Unit Off For Insufficient
Input Voltage" condition as well.

Add a constant for bit 3 of STATUS_INPUT. Update the Vin limit
attributes to include both bits in the mask for clearing faults.

If an input undervoltage fault occurs, causing a unit off for
insufficient input voltage, but the unit is off bit is not cleared, the
STATUS_WORD will not be updated to clear the input fault condition.
Including the unit is off bit (bit 3) allows for the input fault
condition to completely clear.

Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
Link: https://lore.kernel.org/r/20220317232123.2103592-1-bjwyman@gmail.com
Fixes: b4ce237b7f ("hwmon: (pmbus) Introduce infrastructure to detect sensors and limit registers")
[groeck: Dropped unnecessary ()]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-20 09:08:13 +02:00
..
Kconfig
Makefile
adm1275.c
ibm-cffps.c
ir35221.c
lm25066.c hwmon: (pmbus/lm25066) Add offset coefficients 2021-11-26 11:40:22 +01:00
ltc2978.c hwmon: (pmbus/ltc2978) Fix PMBus polling of MFR_COMMON definitions. 2020-02-28 16:35:54 +01:00
ltc3815.c
max8688.c
max16064.c
max20751.c
max34440.c
pmbus.c
pmbus.h hwmon: (pmbus) Add Vin unit off handling 2022-04-20 09:08:13 +02:00
pmbus_core.c hwmon: (pmbus) Add Vin unit off handling 2022-04-20 09:08:13 +02:00
tps40422.c
tps53679.c hwmon: (pmbus/tps53679) Fix driver info initialization in probe routine 2020-01-27 14:46:19 +01:00
ucd9000.c
ucd9200.c
zl6100.c