Skip to contentSkip to conversation

watchdog: (nct7904) Fix enable watchdog incorrectly

PATCH Guenter Roeck 1 participant 1 message May 13, 2020 Hardware monitoring

lore
Share & tools
lore

Guenter Roeck

author maintainer
#0 lore raw
Quoted 5 lines · On Wed, May 13, 2020 at 11:00:15AM +0000, [email protected] wrote:

From: Yuechao Zhao <[email protected]>

Use incorrect register to enable watchdog in nct7904_wdt_ping()

I merged this patch into the patch introducing watchdog support.

Thanks,
Guenter

Quoted 20 lines
---
 drivers/hwmon/nct7904.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/nct7904.c +1 -1
index 04f2a8e..18c95be 100644
@@ -979,7 +979,7 @@ static int nct7904_wdt_ping(struct watchdog_device *wdt)
 		return ret;
 
 	/* Enable soft watchdog timer */
-	return nct7904_write_reg(data, BANK_0, WDT_TIMER_REG, WDT_SOFT_EN);
+	return nct7904_write_reg(data, BANK_0, WDT_LOCK_REG, WDT_SOFT_EN);
 }
 
 static unsigned int nct7904_wdt_get_timeleft(struct watchdog_device *wdt)
Signature · 1 line
1.8.3.1