acrn-kernel/drivers/hwmon/pmbus
Brandon Wyman a5436af598 hwmon: (pmbus) Add Vin unit off handling
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>
2022-03-17 22:30:28 -07:00
..
Kconfig hwmon: (xdpe12284) Add regulator support 2022-03-02 09:51:15 -08:00
Makefile hwmon: (pmbus) Add support for pli1209bc 2022-02-27 17:03:19 -08:00
adm1266.c
adm1275.c hwmon: (adm1275) Allow setting sample averaging 2022-03-02 09:57:18 -08:00
bel-pfe.c
bpa-rs600.c
delta-ahe50dc-fan.c
dps920ab.c
fsp-3y.c
ibm-cffps.c
inspur-ipsps.c
ir35221.c
ir36021.c
ir38064.c
irps5401.c
isl68137.c
lm25066.c hwmon: (pmbus/lm25066) Add regulator support 2022-02-27 17:03:18 -08:00
ltc2978.c
ltc3815.c
max8688.c
max15301.c
max16064.c
max16601.c
max20730.c
max20751.c
max31785.c
max34440.c
mp2888.c
mp2975.c
mp5023.c
pim4328.c
pli1209bc.c hwmon: (pmbus/pli1209bc) Add regulator support 2022-02-27 17:03:19 -08:00
pm6764tr.c
pmbus.c
pmbus.h hwmon: (pmbus) Add Vin unit off handling 2022-03-17 22:30:28 -07:00
pmbus_core.c hwmon: (pmbus) Add Vin unit off handling 2022-03-17 22:30:28 -07:00
pxe1610.c
q54sj108a2.c
stpddc60.c
tps40422.c
tps53679.c
ucd9000.c
ucd9200.c
xdpe12284.c hwmon: (xdpe12284) Add regulator support 2022-03-02 09:51:15 -08:00
zl6100.c