[U-Boot] [PATCH 7/7] sf: stmicro: use common page timeout define

Haavard Skinnemoen haavard.skinnemoen at atmel.com
Thu Apr 2 13:20:13 CEST 2009


Mike Frysinger wrote:
> -		/* Up to 2 seconds */
> -		ret = stmicro_wait_ready(flash, 2 * CONFIG_SYS_HZ);
> +		ret = stmicro_wait_ready(flash, SPI_FLASH_PAGE_ERASE_TIMEOUT);

50 ms is an awful lot less than 2 seconds. Sure this is safe?

Haavard


More information about the U-Boot mailing list