ACPI / EC: Don't count a SCI interrupt as a false one
authorFeng Tang <feng.tang@intel.com>
Mon, 22 Oct 2012 23:30:12 +0000 (01:30 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 6 Aug 2014 17:07:35 +0000 (18:07 +0100)
commitd1b4412416361dcb90585b366096dfa801da45a7
treebdb9179473e36a57b09820c7bae2498bd5230eaf
parent4beb3dab5a4b7789cb765a7ff90bbdb188f35317
ACPI / EC: Don't count a SCI interrupt as a false one

commit a3cd8d2789c2e265e09377f260e7d2ac9cec81bb upstream.

Currently when advance_transaction() is called in EC interrupt handler,
if there is nothing driver can do with the interrupt, it will be taken
as a false one.

But this is not always true, as there may be a SCI EC interrupt fired
during normal read/write operation, which should not be counted as a
false one. This patch fixes the problem.

Signed-off-by: Feng Tang <feng.tang@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/acpi/ec.c