From: Guenter Roeck Date: Sun, 18 Mar 2012 17:19:25 +0000 (-0700) Subject: Reset caseopen clear bit after setting it X-Git-Tag: nct6775-v0.9~38 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ca4642d5e78389c171f5042892215d6a379e7122;p=groeck-nct6775 Reset caseopen clear bit after setting it Signed-off-by: Guenter Roeck --- diff --git a/nct6775.c b/nct6775.c index 4d228b3..dbed5d2 100644 --- 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 */