loongson: watchdog: fix ping watchdog failed when watchdog close

Changelog: 修复loongson看门狗驱动当关闭时,无法喂狗的问题
Signed-off-by: maoxiaochuan <maoxiaochuan@loongson.cn>
This commit is contained in:
tao89959
2026-08-24 14:17:17 +08:00
committed by maoxiaochuan
parent 8604389b03
commit c8a87714ac
+2
View File
@@ -29,7 +29,9 @@ struct ls2x_wdt_drvdata {
static int ls2x_wdt_ping(struct watchdog_device *wdt_dev)
{
struct ls2x_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev);
u8 wd_en = 1;
writel((1 << wd_en), drvdata->base + RST_CTR);
writel(0x1, drvdata->base + WD_CR);
return 0;