]> git.sur5r.net Git - groeck-nct6775/commitdiff
Reset caseopen clear bit after setting it
authorGuenter Roeck <linux@roeck-us.net>
Sun, 18 Mar 2012 17:19:25 +0000 (10:19 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 18 Mar 2012 17:19:25 +0000 (10:19 -0700)
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
nct6775.c

index 4d228b389d0ac80ecb2ec21281d24e248da25db2..dbed5d285e5fc5cca8768a81529934d0723adc4f 100644 (file)
--- a/nct6775.c
+++ b/nct6775.c
@@ -2852,6 +2852,8 @@ clear_caseopen(struct device *dev, struct device_attribute *attr,
        reg = superio_inb(sio_data->sioreg, NCT6775_REG_CR_CASEOPEN_CLR[nr]);
        reg |= NCT6775_CR_CASEOPEN_CLR_MASK[nr];
        superio_outb(sio_data->sioreg, NCT6775_REG_CR_CASEOPEN_CLR[nr], reg);
+       reg &= ~NCT6775_CR_CASEOPEN_CLR_MASK[nr];
+       superio_outb(sio_data->sioreg, NCT6775_REG_CR_CASEOPEN_CLR[nr], reg);
        superio_exit(sio_data->sioreg);
 
        data->valid = 0;        /* Force cache refresh */