diff options
| author | Walter Stoll <walter.stoll@duagon.com> | 2021-10-14 12:22:29 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-11-17 09:48:21 +0100 |
| commit | 7273488fd373b197d49bcbdb260d70e4b4c159fe (patch) | |
| tree | 57090e3dff82b4a673093e7e6e935ddd153d2d44 /drivers | |
| parent | 5ffdddcf28a12a95b18d6021c70ab4bda6704dd9 (diff) | |
| download | linux-7273488fd373b197d49bcbdb260d70e4b4c159fe.tar.gz linux-7273488fd373b197d49bcbdb260d70e4b4c159fe.tar.bz2 linux-7273488fd373b197d49bcbdb260d70e4b4c159fe.zip | |
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 <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>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/watchdog/omap_wdt.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/watchdog/omap_wdt.c b/drivers/watchdog/omap_wdt.c index 9b91882fe3c4..6d7ccbc0b666 100644 --- a/drivers/watchdog/omap_wdt.c +++ b/drivers/watchdog/omap_wdt.c @@ -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) { |
