diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-02-12 19:37:25 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-02-12 19:37:25 +0000 |
commit | e4edb067a64275ba62669ebb4b42f653cb6aff0d (patch) | |
tree | 89298b49e35ca9af4ead9eb194ac2abdcf1020ec /COPYING | |
parent | fb0828f3db2b6c298b5617690a70cc92f34f3287 (diff) | |
download | flashrom-e4edb067a64275ba62669ebb4b42f653cb6aff0d.tar.gz flashrom-e4edb067a64275ba62669ebb4b42f653cb6aff0d.tar.bz2 flashrom-e4edb067a64275ba62669ebb4b42f653cb6aff0d.zip |
Ignore RES (1 byte) if chip replied to REMS (2 bytes)
SPI RES is the most unreliable way to identify chips because it only
returns a 1-byte ID for most chips.
For every given ID out there, probably a dozen incompatible flash
chips match it. We already refuse to identify a chip with RES if that
chip responds to RDID (3 bytes, good match), and with this patch we
additionally refuse RES if the chip responds to REMS (2 bytes, still a
good match). This increases matching accuracy a lot.
Besides that, the RDID/REMS response checking has been cleaned up for
better readability.
Corresponding to flashrom svn r899.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Sean Nelson <audiohacked@gmail.com>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions