aboutsummaryrefslogtreecommitdiffstats
path: root/ichspi.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-06-24 08:28:39 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-06-24 08:28:39 +0000
commit3431bb70aaf5414a142a39049b257ee794caabdd (patch)
tree42612fa2e2b83f7a560e210dab31181b22c60d62 /ichspi.c
parent23290664edd906ebc0b9118489dd49d027a170f2 (diff)
downloadflashrom-3431bb70aaf5414a142a39049b257ee794caabdd.tar.gz
flashrom-3431bb70aaf5414a142a39049b257ee794caabdd.tar.bz2
flashrom-3431bb70aaf5414a142a39049b257ee794caabdd.zip
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 <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Diffstat (limited to 'ichspi.c')
-rw-r--r--ichspi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ichspi.c b/ichspi.c
index 3806529f..b87bd5c7 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;