ACPI: EC: Handle IRQ storm on Acer laptops
authorAlexey Starikovskiy <astarikovskiy@suse.de>
Tue, 11 Mar 2008 17:30:00 +0000 (13:30 -0400)
committerLen Brown <len.brown@intel.com>
Tue, 11 Mar 2008 17:30:00 +0000 (13:30 -0400)
commit2c81ce4c9c37b910210f2640c28e98a0c398dc26
treee46ccf30836014d115e72791263697585f7943f6
parent2f44bbb495dd3e6d0209eff2257438ab9c570e5b
ACPI: EC: Handle IRQ storm on Acer laptops

On some Acer systems, the HW fails to clear the GPE source,
causing an interrupt storm.

So in EC interrupt mode, we count how many interrupts we
receive when waiting.  If we get more than 5, we give
up on interrupt mode and revert to polling mode.

Also, for polling mode to work on Acers, we need
to insert a delay.

Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/ec.c