From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from dell-paw-3.cambridge.redhat.com ([195.224.55.237] helo=passion.cambridge.redhat.com) by pentafluge.infradead.org with esmtp (Exim 3.22 #1 (Red Hat Linux)) id 15MzT3-0002YP-00 for ; Wed, 18 Jul 2001 23:06:53 +0100 From: David Woodhouse In-Reply-To: <3B560681.4D216FF3@sun.com> References: <3B560681.4D216FF3@sun.com> To: Tim Hockin Cc: linux-mtd@lists.infradead.org Subject: Re: cfi_cmdset_0002 and writes Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 18 Jul 2001 23:12:34 +0100 Message-ID: <26464.995494354@redhat.com> Sender: linux-mtd-admin@lists.infradead.org Errors-To: linux-mtd-admin@lists.infradead.org List-Help: List-Post: List-Subscribe: , List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: thockin@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