acrn-kernel/drivers/hwmon/pmbus
Guenter Roeck 1e699e177e Revert "hwmon: (pmbus) Add regulator supply into macro"
This reverts commit 54cc3dbfc1.

Zev Weiss reports that the reverted patch may cause a regulator
undercount. Here is his report:

... having regulator-dummy set as a supply on my PMBus regulators
(instead of having them as their own top-level regulators without
an upstream supply) leads to enable-count underflow errors when
disabling them:

    # echo 0 > /sys/bus/platform/devices/efuse01/state
    [  906.094477] regulator-dummy: Underflow of regulator enable count
    [  906.100563] Failed to disable vout: -EINVAL
    [  136.992676] reg-userspace-consumer efuse01: Failed to configure state: -22

Zev reports that reverting the patch fixes the problem. So let's do that
for now.

Fixes: 54cc3dbfc1 ("hwmon: (pmbus) Add regulator supply into macro")
Cc: Marcello Sylvester Bauer <sylv@sylv.io>
Reported-by: Zev Weiss <zev@bewilderbeest.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2022-11-04 16:47:01 -07:00
..
Kconfig
Makefile
adm1266.c
adm1275.c
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
lt7182s.c
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
pm6764tr.c
pmbus.c
pmbus.h
pmbus_core.c
pxe1610.c
q54sj108a2.c
stpddc60.c
tps546d24.c
tps40422.c
tps53679.c
ucd9000.c
ucd9200.c
xdpe152c4.c
xdpe12284.c
zl6100.c