]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (lm90) Use worker for alarm notifications
authorGuenter Roeck <linux@roeck-us.net>
Wed, 29 Jun 2022 15:26:20 +0000 (08:26 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 13 Jul 2022 15:39:17 +0000 (08:39 -0700)
commitfefa59d1342bbdcef05c7c69070fb4c4e828ba7b
tree7f9225e97d5eec67cdfcfe20087bb0cc3498dc0c
parentb62f0ff5369ab7313e272f09d577f0e80c060fff
hwmon: (lm90) Use worker for alarm notifications

Reporting alarms using hwmon_notify_event() may result in a callback
from the thermal subsystem. This means that such notifications must
not hold the update lock to avoid a deadlock. To avoid this situation,
use a worker to handle notifications.

Reported-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Tested-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Fixes: 9779da3694d2 ("hwmon: (lm90) Rework alarm/status handling")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/lm90.c