path: root/sst49lfxxxc.c
diff options
authorCarl-Daniel Hailfinger <>2011-06-26 17:04:16 +0000
committerCarl-Daniel Hailfinger <>2011-06-26 17:04:16 +0000
commitb4061f61cdf951760020c6d4789023d4001b9782 (patch)
tree99b4aec1edbe35372a0fe653b5448f52c0fe98c8 /sst49lfxxxc.c
parentbfa021dd80594e51fa25feee56457d545849e312 (diff)
Move erase verification to generic code
Erase functions are no longer called from chip drivers and thus their internal erase verification can be moved to generic code. This also makes it easier to skip the verify step if desired and to differentiate between failed command submission and failed erase verification. Corresponding to flashrom svn r1353. Signed-off-by: Carl-Daniel Hailfinger <> Acked-by: Stefan Tauner <>
Diffstat (limited to 'sst49lfxxxc.c')
1 files changed, 1 insertions, 4 deletions
diff --git a/sst49lfxxxc.c b/sst49lfxxxc.c
index 392d7a8..28f6cd0 100644
--- a/sst49lfxxxc.c
+++ b/sst49lfxxxc.c
@@ -70,9 +70,6 @@ int erase_sector_49lfxxxc(struct flashchip *flash, unsigned int address, unsigne
status = wait_82802ab(flash);
- if (check_erased_range(flash, address, sector_size)) {
- msg_cerr("ERASE FAILED!\n");
- return -1;
- }
+ /* FIXME: Check the status register for errors. */
return 0;
OpenPOWER on IntegriCloud