cfi_cmdset_0002 and writes

David Woodhouse dwmw2 at infradead.org
Wed Jul 18 18:12:34 EDT 2001


thockin at sun.com said:
>  Secondly, the specs call for specific spin checks (checkin the high
> bot of each byte) rather than wait-times. 

On erase, that's what we do, isn't it?

	rdy_mask = CMD(0x80);
	while ( ( (status = cfi_read(map,adr)) & rdy_mask ) != rdy_mask ) {

For writes, we watch the toggling bit and continue when either it stops
toggling or we've timed out.

--
dwmw2






More information about the linux-mtd mailing list