Thomas Chou 22d6c8faac cfi_flash: reset timer in flash status check
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 elapsed. So the timer
period registers should be reset before get_timer(0) is
called.

There is similar usage in nand_base.c.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Signed-off-by: Stefan Roese <sr@denx.de>
2010-04-07 11:33:16 +02:00
..
2009-09-04 21:53:37 +02:00
2010-02-12 12:31:54 -06:00
2009-09-04 21:54:52 +02:00
2010-04-01 11:28:32 +02:00
2009-09-04 21:54:04 +02:00
2009-07-29 09:57:43 +02:00
2009-12-05 02:11:59 +01:00
2010-03-12 23:06:04 +01:00