[U-Boot] [PATCH v2] cfi_flash: reset timer in flash status check

2010-03-31 Thread Thomas Chou
This patch adds reset_timer() before the flash status check waiting loop. Since the timer is basically running asynchronous to the cfi code, it is possible to call get_timer(0), then only a few _SYSCLK_ cycles later an interrupt is generated. This causes timeout even though much less time has elap

Re: [U-Boot] [PATCH v2] cfi_flash: reset timer in flash status check

2010-04-07 Thread Stefan Roese
On Thursday 01 April 2010 05:15:05 Thomas Chou wrote: > This patch adds reset_timer() before the flash status check > waiting loop. > > Since the timer is basically running asynchronous to the cfi > code, it is possible to call get_timer(0), then only a few > _SYSCLK_ cycles later an interrupt is