Skip to content

Commit e6a0898

Browse files
asdfugilWim Van Sebroeck
authored andcommitted
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 <[email protected]> Reviewed-by: Sven Peter <[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 51dfe71 commit e6a0898

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/watchdog/apple_wdt.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,11 @@ static int apple_wdt_restart(struct watchdog_device *wdd, unsigned long mode,
127127
/*
128128
* Flush writes and then wait for the SoC to reset. Even though the
129129
* reset is queued almost immediately experiments have shown that it
130-
* can take up to ~20-25ms until the SoC is actually reset. Just wait
131-
* 50ms here to be safe.
130+
* can take up to ~120-125ms until the SoC is actually reset. Just
131+
* wait 150ms here to be safe.
132132
*/
133133
(void)readl(wdt->regs + APPLE_WDT_WD1_CUR_TIME);
134-
mdelay(50);
134+
mdelay(150);
135135

136136
return 0;
137137
}

0 commit comments

Comments
 (0)