Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1864ca9a authored by Walter Stoll's avatar Walter Stoll Committed by Greg Kroah-Hartman
Browse files

watchdog: Fix OMAP watchdog early handling



[ Upstream commit cd004d8299f1dc6cfa6a4eea8f94cb45eaedf070 ]

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: default avatarWalter Stoll <walter.stoll@duagon.com>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/88a8fe5229cd68fa0f1fd22f5d66666c1b7057a0.camel@duagon.com


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@linux-watchdog.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 8d669897
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -272,8 +272,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) {