diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2011-06-26 17:04:16 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2011-06-26 17:04:16 +0000 |
commit | b4061f61cdf951760020c6d4789023d4001b9782 (patch) | |
tree | 99b4aec1edbe35372a0fe653b5448f52c0fe98c8 /stm50flw0x0x.c | |
parent | bfa021dd80594e51fa25feee56457d545849e312 (diff) | |
download | ast2050-flashrom-b4061f61cdf951760020c6d4789023d4001b9782.zip ast2050-flashrom-b4061f61cdf951760020c6d4789023d4001b9782.tar.gz |
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 <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'stm50flw0x0x.c')
-rw-r--r-- | stm50flw0x0x.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/stm50flw0x0x.c b/stm50flw0x0x.c index 726a882..f3fc4d8 100644 --- a/stm50flw0x0x.c +++ b/stm50flw0x0x.c @@ -107,10 +107,6 @@ int erase_sector_stm50flw0x0x(struct flashchip *flash, unsigned int sector, unsi wait_82802ab(flash); - if (check_erased_range(flash, sector, sectorsize)) { - msg_cerr("ERASE FAILED!\n"); - return -1; - } - + /* FIXME: Check the status register for errors. */ return 0; } |