aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/ec.c
diff options
context:
space:
mode:
authorAlexey Starikovskiy <alexey.y.starikovskiy@intel.com>2006-12-07 10:42:16 -0500
committerLen Brown <len.brown@intel.com>2006-12-08 02:56:04 -0500
commitd91df1aaa9e4c06f8ea10d4935888c4f1976ef56 (patch)
treedca239001c839fe25a8195d14a08305e0aa4eaac /drivers/acpi/ec.c
parentc99767974ebd2a719d849fdeaaa1674456f5283f (diff)
ACPI: ec: Allow for write semantics in any command.
Check for transaction attributes, not command index to decide on event to expect. Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/ec.c')
-rw-r--r--drivers/acpi/ec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c
index e6d4b084dca2..348a19e19b64 100644
--- a/drivers/acpi/ec.c
+++ b/drivers/acpi/ec.c
@@ -253,7 +253,7 @@ static int acpi_ec_transaction_unlocked(struct acpi_ec *ec, u8 command,
253 acpi_ec_write_data(ec, *(wdata++)); 253 acpi_ec_write_data(ec, *(wdata++));
254 } 254 }
255 255
256 if (command == ACPI_EC_COMMAND_WRITE) { 256 if (!rdata_len) {
257 result = acpi_ec_wait(ec, ACPI_EC_EVENT_IBF_0); 257 result = acpi_ec_wait(ec, ACPI_EC_EVENT_IBF_0);
258 if (result) 258 if (result)
259 return result; 259 return result;