Skip to content

Commit 325f510

Browse files
marcusfolkessonWim Van Sebroeck
authored andcommitted
watchdog: da9052_wdt: respect TWDMIN
We have to wait at least the minimium time for the watchdog window (TWDMIN) before writings to the wdt register after the watchdog is activated. Otherwise the chip will assert TWD_ERROR and power down to reset mode. Signed-off-by: Marcus Folkesson <[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]>
1 parent 8807f0a commit 325f510

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/watchdog/da9052_wdt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ static int da9052_wdt_probe(struct platform_device *pdev)
180180
da9052_wdt = &driver_data->wdt;
181181

182182
da9052_wdt->timeout = DA9052_DEF_TIMEOUT;
183+
da9052_wdt->min_hw_heartbeat_ms = DA9052_TWDMIN;
183184
da9052_wdt->info = &da9052_wdt_info;
184185
da9052_wdt->ops = &da9052_wdt_ops;
185186
da9052_wdt->parent = dev;

0 commit comments

Comments
 (0)