Platform: OLPC: add a suspended flag to the EC driver
authorAndres Salomon <dilinger@queued.net>
Fri, 13 Jul 2012 22:54:25 +0000 (15:54 -0700)
committerAndres Salomon <dilinger@queued.net>
Wed, 1 Aug 2012 03:27:30 +0000 (23:27 -0400)
commitd278b7a2f90f91f908b19b50cfa59e10632b5afc
tree559ebe7c5cfbdb46381ecd9074dff292c09f7012
parentac2504151f5af27bbf0c0362b7da5951e05dfc43
Platform: OLPC: add a suspended flag to the EC driver

A problem we've noticed on XO-1.75 is when we suspend in the middle of
an EC command.  Don't allow that.

In the process, create a private object for the generic EC driver to use;
we have a framework for passing around a struct, use that rather than a
proliferation of global variables.

Signed-off-by: Andres Salomon <dilinger@queued.net>
Acked-by: Paul Fox <pgf@laptop.org>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
drivers/platform/olpc/olpc-ec.c