提交 0c5d31f4 编写于 作者: A Alexey Starikovskiy 提交者: Len Brown

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: NAlexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: NLen Brown <len.brown@intel.com>
上级 080e412c
......@@ -228,7 +228,9 @@ static int acpi_ec_transaction_unlocked(struct acpi_ec *ec, u8 command,
command);
goto end;
}
set_bit(EC_FLAGS_WAIT_GPE, &ec->flags);
/* 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);
}
end:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册