]> Git Repo - linux.git/commitdiff
watchdog: Fix OMAP watchdog early handling
authorWalter Stoll <[email protected]>
Thu, 14 Oct 2021 10:22:29 +0000 (12:22 +0200)
committerWim Van Sebroeck <[email protected]>
Tue, 26 Oct 2021 18:22:51 +0000 (20:22 +0200)
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]>
drivers/watchdog/omap_wdt.c

index 1616f93dfad7fcdccf7d74a7dc18d979a1643e7a..74d785b2b478f4719c78eae1425f826e7368b526 100644 (file)
@@ -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) {
This page took 0.054108 seconds and 4 git commands to generate.