From: Alexey Starikovskiy Date: Mon, 22 Oct 2007 10:18:36 +0000 (+0400) Subject: ACPI: EC: Don't expect interrupt after last read X-Git-Tag: v2.6.24-rc2~92^2~3^2~14 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=0c5d31f48e54b2e56e9cef8d49ffedaef1e0ea52;p=linux-2.6-omap-h63xx.git ACPI: EC: Don't expect interrupt after last read There is no interrupt after last read according to spec, so don't set bit that we are expecting one. Signed-off-by: Alexey Starikovskiy Signed-off-by: Len Brown --- diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 08fbe62a2db..5ce90ce22b5 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c @@ -228,7 +228,9 @@ static int acpi_ec_transaction_unlocked(struct acpi_ec *ec, u8 command, command); goto end; } - set_bit(EC_FLAGS_WAIT_GPE, &ec->flags); + /* Don't expect GPE after last read */ + if (rdata_len > 1) + set_bit(EC_FLAGS_WAIT_GPE, &ec->flags); *(rdata++) = acpi_ec_read_data(ec); } end: