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)
On Mon, Aug 09, 2010 at 02:41:28PM -0700, David Hendricks wrote:
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)
Thanks, looks good. r5689.
Uwe.
On 8/9/10 11:41 PM, David Hendricks wrote:
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.
Great catch.
Signed-off by: David Hendricks (dhendrix@google.com mailto:dhendrix@google.com)
Acked-by: Stefan Reinauer stepan@coresystems.de