Some chips do not require enter/exit sequences. This causes them to be
authorDavid Hendricks <dhendrix@google.com>
Mon, 9 Aug 2010 23:13:13 +0000 (23:13 +0000)
committerUwe Hermann <uwe@hermann-uwe.de>
Mon, 9 Aug 2010 23:13:13 +0000 (23:13 +0000)
commit2ad6d55e38c51acc4191ea5578caebe3287f6521
treec2ca1d504b06e09f7ff0b405d6e66a96f6a301c5
parent9bf7810dacc34e791431f5511b6ed6febda29940
Some chips do not require enter/exit sequences. This causes them to be
detected and printed multiple times in probe_idregs_* functions where a
simple series of enter --> probe/print --> exit calls are made.

This patch adds a simple check after each set of those calls to make the
functions quit after a chip is found.

Signed-off-by: David Hendricks <dhendrix@google.com>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5689 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
util/superiotool/ite.c
util/superiotool/winbond.c