diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-08-18 15:12:43 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-08-18 15:12:43 +0000 |
commit | eb0e7fc4f08dcc704565ae07c83878171cc71a44 (patch) | |
tree | e9eb1f6a1701f8bbe8fdabf6bcfad87870e2547a /print.c | |
parent | a84b0bd6ad4b5ab7220deb799f30515a9eb0d7fc (diff) | |
download | flashrom-eb0e7fc4f08dcc704565ae07c83878171cc71a44.tar.gz flashrom-eb0e7fc4f08dcc704565ae07c83878171cc71a44.tar.bz2 flashrom-eb0e7fc4f08dcc704565ae07c83878171cc71a44.zip |
Add paranoid checks to sb600spi driver
Add paranoid checks for correct values in essential registers in the SB600/SB700/... SPI driver. If something else changes the values we
wrote, we will see severe read/write corruption.
sb600spi will now abort the access and return an error if it detects
this sort of corruption.
Note: This corruption can be caused by a few different events:
- IPMI/BMC/IMC accesses flash
- Other software accesses flash
The nature of flash access (read/write/ID/...) is irrelevant. Each such
access will cause corruption for all other accesses happening at the
same time.
Thanks to Matthias Kretz for testing this patch.
Corresponding to flashrom svn r1145.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Matthias Kretz <kretz@kde.org>
Diffstat (limited to 'print.c')
0 files changed, 0 insertions, 0 deletions