Alexey Starikovskiy 9e19721960 ACPI: ec: fix race in status register access
Delay the read of the EC status register until
after the event that caused it occurs -- otherwise
it is possible to read and act on stale status that was
associated with the previous event.

Do this with a perpetually incrementing "event_count" to detect
when a new event occurs and it is safe to read status.

There is no workaround for polling mode -- it is inherently
exposed to reading and acting on stale status, since it
doesn't have an interrupt to tell it the event completed.

http://bugzilla.kernel.org/show_bug.cgi?id=8110

Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
2007-03-09 23:16:23 -05:00
..
2006-12-07 08:39:24 -08:00
2006-10-11 11:14:25 -07:00
2007-03-05 07:57:53 -08:00
2007-03-06 13:38:49 +01:00
2007-02-16 14:00:19 +11:00
2007-02-11 10:51:24 -08:00
2007-02-11 10:51:24 -08:00