mirror of
https://gitee.com/open-loongarch/linux-6.12.git
synced 2026-10-25 12:37:11 +08:00
loongson: watchdog: fix ping watchdog failed when watchdog close
Changelog: 修复loongson看门狗驱动当关闭时,无法喂狗的问题 Signed-off-by: maoxiaochuan <maoxiaochuan@loongson.cn>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user