summaryrefslogtreecommitdiffstats
path: root/sb600spi.c
diff options
context:
space:
mode:
authorStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2014-08-05 23:28:47 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2014-08-05 23:28:47 +0000
commit7608d368fcd566a60ab47755eb1c9263ca9d7b35 (patch)
tree89281c1e08bcc265ac38ba1f1497462f97627fbc /sb600spi.c
parent18f509780a3eb76ffe31b4bfc24016c408dec537 (diff)
downloadast2050-flashrom-7608d368fcd566a60ab47755eb1c9263ca9d7b35.zip
ast2050-flashrom-7608d368fcd566a60ab47755eb1c9263ca9d7b35.tar.gz
ichspi: fix missing set_addr on erases and possible crossings of 256 B boundaries
Apparently the erase function did never set any address before issuing the erase commands. How could this ever work? Also, according to PCH documentation crossing 256 byte boundaries is invalid and may cause wraparound due to the flash chip's pages. Check for this on reads as well as writes. Thanks to Vladimir 'φ-coder/phcoder' Serbinenko for noticing these issues and providing the initial patch. Corresponding to flashrom svn r1837. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'sb600spi.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud