Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d91df1aa authored by Alexey Starikovskiy's avatar Alexey Starikovskiy Committed by Len Brown
Browse files

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: default avatarLen Brown <len.brown@intel.com>
parent c9976797
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;