Skip to content

Commit

Permalink
watchdog: Fix OMAP watchdog early handling
Browse files Browse the repository at this point in the history
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 <walter.stoll@duagon.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/88a8fe5229cd68fa0f1fd22f5d66666c1b7057a0.camel@duagon.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
  • Loading branch information
Walter Stoll authored and Wim Van Sebroeck committed Oct 26, 2021
1 parent abd1c6a commit cd004d8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/watchdog/omap_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,12 @@ static int omap_wdt_probe(struct platform_device *pdev)
wdev->wdog.bootstatus = WDIOF_CARDRESET;
}

if (!early_enable)
if (early_enable) {
omap_wdt_start(&wdev->wdog);
set_bit(WDOG_HW_RUNNING, &wdev->wdog.status);
} else {
omap_wdt_disable(wdev);
}

ret = watchdog_register_device(&wdev->wdog);
if (ret) {
Expand Down

0 comments on commit cd004d8

Please sign in to comment.