]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hwmon: (ina2xx) Set alert latch
authorGuenter Roeck <linux@roeck-us.net>
Tue, 23 Jul 2024 23:17:02 +0000 (16:17 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 30 Aug 2024 15:34:23 +0000 (08:34 -0700)
commitaa7d17636640233062075c22afbb3e25fc5e5a91
tree74dbba38ba914ade3767f77306bf35c7c3eb1977
parent51c6fa3246cd6f12e3194795b0a934c1aa8f9d4f
hwmon: (ina2xx) Set alert latch

Alerts should only be cleared after reported, not immediately after the
alert condition has been cleared. Set the latch enable bit to keep alerts
latched until the alert register has been read from the chip.

Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ina2xx.c