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 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.
Applied to u-boot-cfi-flash/master. Thanks. Cheers, Stefan -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: off...@denx.de _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot