mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-30 15:53:22 -05:00
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: 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]> Signed-off-by: Sasha Levin <[email protected]>
This commit is contained in:
parent
5ffdddcf28
commit
7273488fd3
1 changed files with 5 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue