]> git.ipfire.org Git - people/ms/linux.git/commitdiff
hwmon: (lm90) Mark alert as broken for MAX6646/6647/6649
authorGuenter Roeck <linux@roeck-us.net>
Fri, 7 Jan 2022 20:36:41 +0000 (12:36 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 24 Jan 2022 02:21:27 +0000 (18:21 -0800)
Experiments with MAX6646 and MAX6648 show that the alert function of those
chips is broken, similar to other chips supported by the lm90 driver.
Mark it accordingly.

Fixes: 4667bcb8d8fc ("hwmon: (lm90) Introduce chip parameter structure")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/lm90.c

index 06cb971c889b40816840bd26872f62379bee5821..ba01127c1deb1014a066fc45ed976abbc4d9989a 100644 (file)
@@ -394,7 +394,7 @@ static const struct lm90_params lm90_params[] = {
                .max_convrate = 9,
        },
        [max6646] = {
-               .flags = LM90_HAVE_CRIT,
+               .flags = LM90_HAVE_CRIT | LM90_HAVE_BROKEN_ALERT,
                .alert_alarms = 0x7c,
                .max_convrate = 6,
                .reg_local_ext = MAX6657_REG_R_LOCAL_TEMPL,