aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/ec.c
diff options
context:
space:
mode:
authorAlexey Starikovskiy <astarikovskiy@suse.de>2007-10-22 06:18:36 -0400
committerLen Brown <len.brown@intel.com>2007-10-25 16:31:31 -0400
commit0c5d31f48e54b2e56e9cef8d49ffedaef1e0ea52 (patch)
tree10843d57627f6a7b4173ab526263be10cc5695e4 /drivers/acpi/ec.c
parent080e412cc0bdb9ef8e7a983d5e008537e1c4d36c (diff)
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 <astarikovskiy@suse.de> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/ec.c')
-rw-r--r--drivers/acpi/ec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c
index 08fbe62a2db4..5ce90ce22b58 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,
228 command); 228 command);
229 goto end; 229 goto end;
230 } 230 }
231 set_bit(EC_FLAGS_WAIT_GPE, &ec->flags); 231 /* Don't expect GPE after last read */
232 if (rdata_len > 1)
233 set_bit(EC_FLAGS_WAIT_GPE, &ec->flags);
232 *(rdata++) = acpi_ec_read_data(ec); 234 *(rdata++) = acpi_ec_read_data(ec);
233 } 235 }
234 end: 236 end: