From 3431bb70aaf5414a142a39049b257ee794caabdd Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger Date: Wed, 24 Jun 2009 08:28:39 +0000 Subject: Check result of all SPI erase functions Since block erase functions do not know the block length (it's not specified in any standard), block erase functions now get an additional parameter blocklen. This enables flashrom to verify the erase result for block erase functions at correct boundaries. Tested by Uwe on SB600. Corresponding to flashrom svn r630. Signed-off-by: Carl-Daniel Hailfinger Acked-by: Uwe Hermann --- ichspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ichspi.c') diff --git a/ichspi.c b/ichspi.c index 3806529..b87bd5c 100644 --- a/ichspi.c +++ b/ichspi.c @@ -661,7 +661,7 @@ int ich_spi_write_256(struct flashchip *flash, uint8_t * buf) * For this, we need to add a block erase function to * struct flashchip. */ - rc = spi_block_erase_d8(flash, i * erase_size); + rc = spi_block_erase_d8(flash, i * erase_size, erase_size); if (rc) { printf("Error erasing block at 0x%x\n", i); break; -- cgit v1.1