summaryrefslogtreecommitdiff
path: root/drivers/hwmon/sht21.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2022-01-08 11:37:19 -0800
committerGuenter Roeck <linux@roeck-us.net>2022-01-23 18:21:27 -0800
commitbc341a1a98827925082e95db174734fc8bd68af6 (patch)
treedd641d997427f0eae8680b21098ca4ccdc9c00c9 /drivers/hwmon/sht21.c
parenta66c5ed539277b9f2363bbace0dba88b85b36c26 (diff)
hwmon: (lm90) Re-enable interrupts after alert clears
If alert handling is broken, interrupts are disabled after an alert and re-enabled after the alert clears. However, if there is an interrupt handler, this does not apply if alerts were originally disabled and enabled when the driver was loaded. In that case, interrupts will stay disabled after an alert was handled though the alert handler even after the alert condition clears. Address the situation by always re-enabling interrupts after the alert condition clears if there is an interrupt handler. Fixes: 2abdc357c55d9 ("hwmon: (lm90) Unmask hardware interrupt") Cc: Dmitry Osipenko <digetx@gmail.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/sht21.c')
0 files changed, 0 insertions, 0 deletions