diff options
| author | Suniel Mahesh <[email protected]> | 2019-09-16 13:39:17 +0530 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2019-09-19 12:54:29 -0400 |
| commit | 1e3966394a96fbf6128a875d135e074656d1bd64 (patch) | |
| tree | 7f8cf96dfa16f103638f95774b84bf77ba3a5bb0 /drivers | |
| parent | 4a7cf0fd2bf74b707e8a5f82436e2f0431259583 (diff) | |
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 <[email protected]>
Fixes: 7659ea32 ("watchdog: omap_wdt: Convert watchdog driver to use DT and DM")
Reported-by: Sam Protsenko <[email protected]>
Signed-off-by: Suniel Mahesh <[email protected]>
Acked-by: Grygorii Strashko <[email protected]>
Reviewed-by: Sam Protsenko <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/watchdog/omap_wdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/omap_wdt.c b/drivers/watchdog/omap_wdt.c index d5857be8679..284cfbb2a89 100644 --- a/drivers/watchdog/omap_wdt.c +++ b/drivers/watchdog/omap_wdt.c @@ -150,7 +150,6 @@ static int omap3_wdt_reset(struct udevice *dev) { struct omap3_wdt_priv *priv = dev_get_priv(dev); - priv->wdt_trgr_pattern = 0x1234; /* * Somebody just triggered watchdog reset and write to WTGR register * is in progress. It is resetting right now, no need to trigger it @@ -231,6 +230,7 @@ static int omap3_wdt_probe(struct udevice *dev) if (!priv->regs) return -EINVAL; + priv->wdt_trgr_pattern = 0x1234; debug("%s: Probing wdt%u\n", __func__, dev->seq); return 0; } |
