Skip to content

Commit cd004d8

Browse files
Walter StollWim Van Sebroeck
authored andcommitted
watchdog: Fix OMAP watchdog early handling
TI's implementation does not service the watchdog even if the kernel command line parameter omap_wdt.early_enable is set to 1. This patch fixes the issue. Signed-off-by: Walter Stoll <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent abd1c6a commit cd004d8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/watchdog/omap_wdt.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,12 @@ static int omap_wdt_probe(struct platform_device *pdev)
268268
wdev->wdog.bootstatus = WDIOF_CARDRESET;
269269
}
270270

271-
if (!early_enable)
271+
if (early_enable) {
272+
omap_wdt_start(&wdev->wdog);
273+
set_bit(WDOG_HW_RUNNING, &wdev->wdog.status);
274+
} else {
272275
omap_wdt_disable(wdev);
276+
}
273277

274278
ret = watchdog_register_device(&wdev->wdog);
275279
if (ret) {

0 commit comments

Comments
 (0)