提交 6a63b06f 编写于 作者: A Alexey Starikovskiy 提交者: Len Brown

ACPI: EC: use BURST mode only for MSI notebooks

Signed-off-by: NAlexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: NLen Brown <len.brown@intel.com>
上级 2a84cb98
......@@ -575,7 +575,8 @@ acpi_ec_space_handler(u32 function, acpi_physical_address address,
if (bits != 8 && acpi_strict)
return AE_BAD_PARAMETER;
acpi_ec_burst_enable(ec);
if (EC_FLAGS_MSI)
acpi_ec_burst_enable(ec);
if (function == ACPI_READ) {
result = acpi_ec_read(ec, address, &temp);
......@@ -596,7 +597,8 @@ acpi_ec_space_handler(u32 function, acpi_physical_address address,
}
}
acpi_ec_burst_disable(ec);
if (EC_FLAGS_MSI)
acpi_ec_burst_disable(ec);
switch (result) {
case -EINVAL:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册