From ca4642d5e78389c171f5042892215d6a379e7122 Mon Sep 17 00:00:00 2001 From: Guenter Roeck Date: Sun, 18 Mar 2012 10:19:25 -0700 Subject: [PATCH] Reset caseopen clear bit after setting it Signed-off-by: Guenter Roeck --- nct6775.c | 2 ++ 1 file changed, 2 insertions(+) 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 */ -- 2.39.5