[flashrom] [commit] r654 - trunk

svn at flashrom.org svn at flashrom.org
Mon Jul 20 17:21:18 CEST 2009


Author: hailfinger
Date: 2009-07-20 17:21:18 +0200 (Mon, 20 Jul 2009)
New Revision: 654

Modified:
   trunk/sst49lfxxxc.c
Log:
Reset SST49LF016C after erase to exit the read status register mode.
Without this, all reads after erase will return 0x80 instead of the real
memory contents.

Thanks to Michael Melcher for testing.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>
Acked-by: Luc Verhaegen <libv at skynet.be>
Acked-by: Michael Melcher <Michael.Melcher82 at googlemail.com>


Modified: trunk/sst49lfxxxc.c
===================================================================
--- trunk/sst49lfxxxc.c	2009-07-14 10:26:56 UTC (rev 653)
+++ trunk/sst49lfxxxc.c	2009-07-20 15:21:18 UTC (rev 654)
@@ -91,6 +91,7 @@
 			return (-1);
 		}
 	} while (!(status & STATUS_WSMS));
+	chip_writeb(RESET, bios);
 
 	if (check_erased_range(flash, address, sector_size)) {
 		fprintf(stderr, "ERASE FAILED!\n");





More information about the flashrom mailing list