hwmon: (lm90) Re-enable interrupts after alert clears
authorGuenter Roeck <linux@roeck-us.net>
Sat, 8 Jan 2022 19:37:19 +0000 (11:37 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 12 Jan 2022 01:07:37 +0000 (17:07 -0800)
commite789f6e47eb4ef3047dba247d8a623788eb71dcc
treef9c122250ba6204f5fceba1da859e7d212ab0216
parentbe6bfb92737ad1583831efafa88a8cb9aa038dec
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>
drivers/hwmon/lm90.c