From b4061f61cdf951760020c6d4789023d4001b9782 Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger Date: Sun, 26 Jun 2011 17:04:16 +0000 Subject: 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 --- 82802ab.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to '82802ab.c') diff --git a/82802ab.c b/82802ab.c index 09b95e6ca..258070625 100644 --- a/82802ab.c +++ b/82802ab.c @@ -136,11 +136,7 @@ int erase_block_82802ab(struct flashchip *flash, unsigned int page, unsigned int status = wait_82802ab(flash); print_status_82802ab(status); - if (check_erased_range(flash, page, pagesize)) { - msg_cerr("ERASE FAILED!\n"); - return -1; - } - + /* FIXME: Check the status register for errors. */ return 0; } -- cgit v1.2.3