浏览代码

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>
Alexey Starikovskiy 18 年之前
父节点
当前提交
d91df1aaa9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/acpi/ec.c

+ 1 - 1
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;