Skip to content

Commit

Permalink
ACPI: ec: Allow for write semantics in any command.
Browse files Browse the repository at this point in the history
Check for transaction attributes, not command index to decide on event to
expect.

Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Alexey Starikovskiy authored and Len Brown committed Dec 8, 2006
1 parent c997679 commit d91df1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/acpi/ec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d91df1a

Please sign in to comment.