summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Chan <towinchenmi@gmail.com>2024-10-02 00:59:52 +0800
committerWim Van Sebroeck <wim@linux-watchdog.org>2024-11-04 13:13:02 +0100
commite6a08988eb5948a99d1f3b48afab4ffff01ae9a4 (patch)
tree4364183e1edb9dda4adf8ea10d31ecabc0c191d8
parent51dfe714c03c066aabc815a2bb2adcc998dfcb30 (diff)
watchdog: apple: Increase reset delay to 150ms
The Apple A8X SoC seems to be slowest at resetting, taking up to around 125ms to reset. Wait 150ms to be safe here. Signed-off-by: Nick Chan <towinchenmi@gmail.com> Reviewed-by: Sven Peter <sven@svenpeter.dev> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20241001170018.20139-3-towinchenmi@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
-rw-r--r--drivers/watchdog/apple_wdt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/watchdog/apple_wdt.c b/drivers/watchdog/apple_wdt.c
index 62dabf223d90..95d9e37df41c 100644
--- a/drivers/watchdog/apple_wdt.c
+++ b/drivers/watchdog/apple_wdt.c
@@ -127,11 +127,11 @@ static int apple_wdt_restart(struct watchdog_device *wdd, unsigned long mode,
/*
* Flush writes and then wait for the SoC to reset. Even though the
* reset is queued almost immediately experiments have shown that it
- * can take up to ~20-25ms until the SoC is actually reset. Just wait
- * 50ms here to be safe.
+ * can take up to ~120-125ms until the SoC is actually reset. Just
+ * wait 150ms here to be safe.
*/
(void)readl(wdt->regs + APPLE_WDT_WD1_CUR_TIME);
- mdelay(50);
+ mdelay(150);
return 0;
}