Skip to content
Snippets Groups Projects
Commit 1e396639 authored by Suniel Mahesh's avatar Suniel Mahesh Committed by Tom Rini
Browse files

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: default avatarSam Protsenko <semen.protsenko@linaro.org>
Signed-off-by: default avatarSuniel Mahesh <sunil.m@techveda.org>
Acked-by: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
Reviewed-by: default avatarSam Protsenko <semen.protsenko@linaro.org>
parent 4a7cf0fd
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment