]> err.no Git - linux-2.6/commitdiff
ACPI: ec: Allow for write semantics in any command.
authorAlexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Thu, 7 Dec 2006 15:42:16 +0000 (18:42 +0300)
committerLen Brown <len.brown@intel.com>
Fri, 8 Dec 2006 07:56:04 +0000 (02:56 -0500)
Check for transaction attributes, not command index to decide on event to
expect.

Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/ec.c

index e6d4b084dca2eeb40213074998ccdfde52278260..348a19e19b64920acc0650dd34f0a671e6c659aa 100644 (file)
@@ -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;