diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-12-02 21:59:42 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-12-02 21:59:42 +0000 |
commit | 03fe666b47909f058f35b9598f5d770771879cc3 (patch) | |
tree | 7deb9003389538eee23ff2d086d3a19eceeb7c32 /flashrom.c | |
parent | 87251d15ed9aa83d129732166b02a48751f485a3 (diff) | |
download | flashrom-03fe666b47909f058f35b9598f5d770771879cc3.zip flashrom-03fe666b47909f058f35b9598f5d770771879cc3.tar.gz |
Avoid printing the chip locks if chip detection was forced because lock access may involve flash chip registers which will not be mapped
Corresponding to flashrom svn r1240.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Diffstat (limited to 'flashrom.c')
-rw-r--r-- | flashrom.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1163,8 +1163,12 @@ notfound: flash->vendor, flash->name, flash->total_size, flashbuses_to_text(flash->bustype), base); - if (flash->printlock) - flash->printlock(flash); + /* Flash registers will not be mapped if the chip was forced. Lock info + * may be stored in registers, so avoid lock info printing. + */ + if (!force) + if (flash->printlock) + flash->printlock(flash); return flash; } |