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

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

ACPI: EC: Don't expect interrupt after last read



There is no interrupt after last read according to spec, so
don't set bit that we are expecting one.

Signed-off-by: default avatarAlexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 080e412c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -228,6 +228,8 @@ static int acpi_ec_transaction_unlocked(struct acpi_ec *ec, u8 command,
			       command);
			goto end;
		}
		/* Don't expect GPE after last read */
		if (rdata_len > 1)
			set_bit(EC_FLAGS_WAIT_GPE, &ec->flags);
		*(rdata++) = acpi_ec_read_data(ec);
	}