watchdog: apple: Increase reset delay to 150ms
Subsystems (2)
PATCH 1/1 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]>
--- drivers/watchdog/apple_wdt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/watchdog/apple_wdt.c +3 -3
@@ -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_relaxed (wdt->regs +APPLE_WDT_WD1_CUR_TIME ); -mdelay (50 ); +mdelay (150 );return 0 ; }
base-commit: 5acd9952f95fb4b7da6d09a3be39195a80845eb6
Signature · 1 line
2.46.0
Quoted 4 lines · Nick Chan
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 Guenter Roeck <[email protected]>
Quoted 25 lines
--- drivers/watchdog/apple_wdt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/watchdog/apple_wdt.c +3
-3@@ -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_relaxed (wdt->regs +APPLE_WDT_WD1_CUR_TIME ); -mdelay (50 ); +mdelay (150 );return 0 ; }base-commit:
5acd9952f95fb4b7da6d09a3be39195a80845eb6
Quoted 9 lines · Nick Chan
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]>
Quoted 27 lines
drivers/watchdog/apple_wdt.c| 6 +++---1 file changed, 3 insertions(+), 3 deletions(-)drivers/watchdog/apple_wdt.c +3
-3@@ -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_relaxed (wdt->regs +APPLE_WDT_WD1_CUR_TIME ); -mdelay (50 ); +mdelay (150 );return 0 ; }base-commit:
5acd9952f95fb4b7da6d09a3be39195a80845eb6--
2.46.0