watchdog: omap_wdt: Fix WDT target reset when booted from emmc
authorSuniel Mahesh <sunil.m@techveda.org>
Mon, 16 Sep 2019 08:09:17 +0000 (13:39 +0530)
committerTom Rini <trini@konsulko.com>
Thu, 19 Sep 2019 16:54:29 +0000 (12:54 -0400)
commit1e3966394a96fbf6128a875d135e074656d1bd64
tree7f8cf96dfa16f103638f95774b84bf77ba3a5bb0
parent4a7cf0fd2bf74b707e8a5f82436e2f0431259583
watchdog: omap_wdt: Fix WDT target reset when booted from emmc

AM335X based beaglebone black target gets reset by DM converted watchdog
if booted from emmc around 60sec. Fixed this by moving driver's private struct
variable initialization at different places in the driver to driver's probe.
Tested on Beaglebone Black.

Cc: Grygorii Strashko <grygorii.strashko@ti.com>
Fixes: 7659ea32 ("watchdog: omap_wdt: Convert watchdog driver to use DT and DM")
Reported-by: Sam Protsenko <semen.protsenko@linaro.org>
Signed-off-by: Suniel Mahesh <sunil.m@techveda.org>
Acked-by: Grygorii Strashko <grygorii.strashko@ti.com>
Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
drivers/watchdog/omap_wdt.c