OpenCloudOS-Kernel/arch/x86/platform/olpc
Paul Fox a3ea14df0e x86, olpc: Wait for last byte of EC command to be accepted
When executing EC commands, only waiting when there are still
more bytes to write is usually fine. However, if the system
suspends very quickly after a call to olpc_ec_cmd(), the last
data byte may not yet be transferred to the EC, and the command
will not complete.

This solves a bug where the SCI wakeup mask was not correctly
written when going into suspend.

It means that sometimes, on XO-1.5 (but not XO-1), the
devices that were marked as wakeup sources can't wake up
the system. e.g. you ask for wifi wakeups, suspend, but then
incoming wifi frames don't wake up the system as they should.

Signed-off-by: Paul Fox <pgf@laptop.org>
Signed-off-by: Daniel Drake <dsd@laptop.org>
Acked-by: Andres Salomon <dilinger@queued.net>
Cc: <stable@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2011-08-05 23:47:55 +02:00
..
Makefile x86, olpc: Add XO-1.5 SCI driver 2011-07-06 14:44:43 -07:00
olpc-xo1-pm.c x86, olpc: Add XO-1 suspend/resume support 2011-07-06 14:44:32 -07:00
olpc-xo1-rtc.c x86, olpc: Add XO-1 RTC driver 2011-07-06 14:44:42 -07:00
olpc-xo1-sci.c x86, olpc-xo1-sci: Propagate power supply/battery events 2011-07-06 14:44:40 -07:00
olpc-xo15-sci.c x86, olpc-xo15-sci: Enable EC wakeup capability 2011-07-24 20:16:05 +02:00
olpc.c x86, olpc: Wait for last byte of EC command to be accepted 2011-08-05 23:47:55 +02:00
olpc_dt.c x86, olpc: Add missing elements to device tree 2011-07-06 14:44:19 -07:00
olpc_ofw.c x86, olpc: Add OLPC device-tree support 2010-12-15 17:11:30 -08:00
xo1-wakeup.S x86, olpc: Add XO-1 suspend/resume support 2011-07-06 14:44:32 -07:00