Skip to content

Commit 1634615

Browse files
committed
Merge tag 'linux-watchdog-5.7-rc2' of git://www.linux-watchdog.org/linux-watchdog
Pull watchdog fix from Wim Van Sebroeck: "Fix restart handler in sp805 driver" * tag 'linux-watchdog-5.7-rc2' of git://www.linux-watchdog.org/linux-watchdog: watchdog: sp805: fix restart handler
2 parents 8fce905 + ea104a9 commit 1634615

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/watchdog/sp805_wdt.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,14 @@ wdt_restart(struct watchdog_device *wdd, unsigned long mode, void *cmd)
137137
{
138138
struct sp805_wdt *wdt = watchdog_get_drvdata(wdd);
139139

140+
writel_relaxed(UNLOCK, wdt->base + WDTLOCK);
140141
writel_relaxed(0, wdt->base + WDTCONTROL);
141142
writel_relaxed(0, wdt->base + WDTLOAD);
142143
writel_relaxed(INT_ENABLE | RESET_ENABLE, wdt->base + WDTCONTROL);
143144

145+
/* Flush posted writes. */
146+
readl_relaxed(wdt->base + WDTLOCK);
147+
144148
return 0;
145149
}
146150

0 commit comments

Comments
 (0)