summaryrefslogtreecommitdiffstats
path: root/sb600spi.c
diff options
context:
space:
mode:
authorStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2014-08-06 15:09:15 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2014-08-06 15:09:15 +0000
commitdf985fa1f89d87f5c1131d16a9bf4ba89c3d36e0 (patch)
tree23a2f8596d493396b7d9571ee91888e3f49c49f9 /sb600spi.c
parent520ce2d37654609aa9b77828c87695b00b2b4c7e (diff)
downloadflashrom-df985fa1f89d87f5c1131d16a9bf4ba89c3d36e0.zip
flashrom-df985fa1f89d87f5c1131d16a9bf4ba89c3d36e0.tar.gz
Add a bunch of new/tested stuff and various small changes 21
Tested mainboards: OK: - ASUS F2A85-M Reported by various corebooters - ASUS M2N-MX SE Plus Reported by Antonio - ASUS P5LD2 Binary file (standard input) matches Corresponding to flashrom svn r1839.
Diffstat (limited to 'sb600spi.c')
-rw-r--r--sb600spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sb600spi.c b/sb600spi.c
index 5710fb2..69fad65 100644
--- a/sb600spi.c
+++ b/sb600spi.c
@@ -191,7 +191,7 @@ static int check_readwritecnt(struct flashctx *flash, unsigned int writecnt, uns
return SPI_INVALID_LENGTH;
}
- unsigned int maxreadcnt = flash->mst->spi.max_data_read + 3;
+ unsigned int maxreadcnt = flash->mst->spi.max_data_read;
if (readcnt > maxreadcnt) {
msg_pinfo("%s: SPI controller can not receive %d bytes, it is limited to %d bytes\n",
__func__, readcnt, maxreadcnt);
OpenPOWER on IntegriCloud