x86, olpc: Don't retry EC commands forever
authorPaul Fox <pgf@laptop.org>
Fri, 1 Oct 2010 17:17:19 +0000 (18:17 +0100)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 6 Jan 2011 23:08:20 +0000 (18:08 -0500)
commitd5632e193d11e1271a2c342cf8ced60053f83390
treea5c22a43ebafaeb3589803a93a9ed0d6bae3fe58
parent7d7eb1b7722acbd8277e929fe1c837b1e467dbf6
x86, olpc: Don't retry EC commands forever

commit 286e5b97eb22baab9d9a41ca76c6b933a484252c upstream.

Avoids a potential infinite loop.

It was observed once, during an EC hacking/debugging
session - not in regular operation.

Signed-off-by: Daniel Drake <dsd@laptop.org>
Cc: dilinger@queued.net
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
arch/x86/kernel/olpc.c