]> git.baikalelectronics.ru Git - kernel.git/commit
x86: OLPC: move s/r-related EC cmds to EC driver
authorAndres Salomon <dilinger@queued.net>
Tue, 17 Jul 2012 08:26:10 +0000 (01:26 -0700)
committerAndres Salomon <dilinger@queued.net>
Wed, 1 Aug 2012 03:27:31 +0000 (23:27 -0400)
commite88290f152668e2b0159730f43d957099cd66d0c
tree8aacc28564c985e96927ec16360ef9b4d73efb45
parent6ca1d4a7a2ba2001c218c624979f2c5f14f80b0e
x86: OLPC: move s/r-related EC cmds to EC driver

The new EC driver calls platform-specific suspend and resume hooks; run
XO-1-specific EC commands from there, rather than deep in s/r code.  If we
attempt to run EC commands after the new EC driver has suspended, it is
refused by the ec->suspended checks.

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