aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorBrandon Wyman <[email protected]>2022-03-17 23:21:23 +0000
committerGuenter Roeck <[email protected]>2022-03-17 22:30:28 -0700
commita5436af598779219b375c1977555c82def1c35d0 (patch)
tree0e4cbc87b83a42e64421b4c330ddc12a0f997680 /net/lapb/lapb_in.c
parentfd6ca3f5b80f6dda381fe84211be3b491f28bf0f (diff)
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Fixes: b4ce237b7f7d3 ("hwmon: (pmbus) Introduce infrastructure to detect sensors and limit registers") [groeck: Dropped unnecessary ()] Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions