mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 07:38:10 +00:00
watchdog: Fix OMAP watchdog early handling
[ Upstream commit cd004d8299
]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
8d66989707
commit
1864ca9a44
1 changed files with 5 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue