cros_ec: Support systems with no EC interrupt
authorSimon Glass <sjg@chromium.org>
Thu, 27 Feb 2014 20:26:05 +0000 (13:26 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 18 Mar 2014 02:05:46 +0000 (20:05 -0600)
commite0dd81e3aaffa58bd45a932c4cd1511cb491714a
tree059ebd3cf9c7e26b7e10adc88f9bca5664beb45d
parent4ff9b461a8c50245a611b15a4fa67784cc452a3d
cros_ec: Support systems with no EC interrupt

Some systems do not have an EC interrupt. Rather than assuming that the
interrupt is always present, and hanging forever waiting for more input,
handle the missing interrupt. This works by reading key scans only until
we get an identical one. This means the EC keyscan FIFO is empty.

Tested-by: Che-Liang Chiou <clchiou@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/input/cros_ec_keyb.c