[ar71xx] During reset, don't spin, just keep trying
I've seen this fail from time to time and just hang during reset. Instead of it just hanging, just poke it again. I've not seen it fail in hundreds of test resets now. Tested: * AR9344 AP/STA configuration
This commit is contained in:
parent
03b0505b8f
commit
114f4b17d5
@ -80,10 +80,13 @@ platform_cpu_init()
|
||||
void
|
||||
platform_reset(void)
|
||||
{
|
||||
ar71xx_device_stop(RST_RESET_FULL_CHIP);
|
||||
/* Wait for reset */
|
||||
while(1)
|
||||
;
|
||||
while(1) {
|
||||
printf("%s: resetting via AHB FULL_CHIP register...\n", __func__);
|
||||
ar71xx_device_start(RST_RESET_FULL_CHIP);
|
||||
DELAY(100 * 1000);
|
||||
ar71xx_device_stop(RST_RESET_FULL_CHIP);
|
||||
DELAY(1000 * 1000);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user