android_kernel_xiaomi_sm7250/drivers/hwmon/pmbus
Brandon Wyman b261474f66 hwmon: (pmbus) Add Vin unit off handling
[ Upstream commit a5436af598779219b375c1977555c82def1c35d0 ]

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-15 14:14:44 +02:00
..
adm1275.c hwmon: (adm1275) Make sure we are reading enough data for different chips 2020-07-29 10:16:53 +02:00
ibm-cffps.c hwmon: (pmbus/ibm-cffps) Switch LEDs to blocking brightness call 2020-01-23 08:21:39 +01:00
ir35221.c hwmon: (pmbus/ir35221) Remove unnecessary scaling 2018-01-15 04:22:46 -08:00
Kconfig hwmon: (pmbus/max34440) Add support for MAX34451. 2018-07-08 20:08:13 -07:00
lm25066.c hwmon: (pmbus/lm25066) Let compiler determine outer dimension of lm25066_coeff 2021-11-26 11:36:09 +01:00
ltc2978.c hwmon: (pmbus/ltc2978) Fix PMBus polling of MFR_COMMON definitions. 2020-02-19 19:51:59 +01:00
ltc3815.c
Makefile hwmon updates for v4.15 2017-11-13 08:55:46 -08:00
max8688.c hwmon: (pmbus/max8688) Accept negative page register values 2018-03-10 18:59:47 -08:00
max16064.c
max20751.c
max31785.c hwmon: (max31785) Add OF device ID table 2018-01-02 15:05:34 -08:00
max34440.c hwmon: (pmbus/max34440) Fix status register reads for MAX344{51,60,61} 2020-10-29 09:55:02 +01:00
pmbus_core.c hwmon: (pmbus) Add Vin unit off handling 2022-04-15 14:14:44 +02:00
pmbus.c hwmon: (pmbus) Fix page count auto-detection. 2018-11-13 11:08:16 -08:00
pmbus.h hwmon: (pmbus) Add Vin unit off handling 2022-04-15 14:14:44 +02:00
tps40422.c
tps53679.c hwmon: (pmbus/tps53679) Fix driver info initialization in probe routine 2020-01-27 14:50:24 +01:00
ucd9000.c treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
ucd9200.c
zl6100.c