path: root/ichspi.c
diff options
authorCarl-Daniel Hailfinger <>2009-06-24 08:28:39 +0000
committerCarl-Daniel Hailfinger <>2009-06-24 08:28:39 +0000
commit3431bb70aaf5414a142a39049b257ee794caabdd (patch)
tree42612fa2e2b83f7a560e210dab31181b22c60d62 /ichspi.c
parent23290664edd906ebc0b9118489dd49d027a170f2 (diff)
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 <>
Diffstat (limited to 'ichspi.c')
1 files changed, 1 insertions, 1 deletions
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);
OpenPOWER on IntegriCloud