Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Nick Chan and committed by
Wim Van Sebroeck
e6a08988 51dfe714

+3 -3
+3 -3
drivers/watchdog/apple_wdt.c
··· 127 127 /* 128 128 * Flush writes and then wait for the SoC to reset. Even though the 129 129 * 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. 132 132 */ 133 133 (void)readl(wdt->regs + APPLE_WDT_WD1_CUR_TIME); 134 - mdelay(50); 134 + mdelay(150); 135 135 136 136 return 0; 137 137 }