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 | 562440bfcbf1c244e7e70a0c33b266b64ba420f3 (patch) | |
tree | 99b4aec1edbe35372a0fe653b5448f52c0fe98c8 /sst28sf040.c | |
parent | 520e25c568ba37f0d428ae4c4ac55ac9223938a3 (diff) | |
download | flashrom-562440bfcbf1c244e7e70a0c33b266b64ba420f3.zip flashrom-562440bfcbf1c244e7e70a0c33b266b64ba420f3.tar.gz |
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 'sst28sf040.c')
-rw-r--r-- | sst28sf040.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sst28sf040.c b/sst28sf040.c index 0fbf098..d621cc7 100644 --- a/sst28sf040.c +++ b/sst28sf040.c @@ -71,10 +71,7 @@ int erase_sector_28sf040(struct flashchip *flash, unsigned int address, unsigned /* wait for Toggle bit ready */ toggle_ready_jedec(bios); - if (check_erased_range(flash, address, sector_size)) { - msg_cerr("ERASE FAILED!\n"); - return -1; - } + /* FIXME: Check the status register for errors. */ return 0; } @@ -113,10 +110,7 @@ static int erase_28sf040(struct flashchip *flash) programmer_delay(10); toggle_ready_jedec(bios); - if (check_erased_range(flash, 0, flash->total_size * 1024)) { - msg_cerr("ERASE FAILED!\n"); - return -1; - } + /* FIXME: Check the status register for errors. */ return 0; } |