From: Alexey Starikovskiy Date: Thu, 7 Dec 2006 15:42:16 +0000 (+0300) Subject: ACPI: ec: Allow for write semantics in any command. X-Git-Tag: v2.6.20-rc2~6^2~14^2~13 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d91df1aaa9e4c06f8ea10d4935888c4f1976ef56;p=linux-2.6 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 --- diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index e6d4b084dc..348a19e19b 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, acpi_ec_write_data(ec, *(wdata++)); } - if (command == ACPI_EC_COMMAND_WRITE) { + if (!rdata_len) { result = acpi_ec_wait(ec, ACPI_EC_EVENT_IBF_0); if (result) return result;