ACPI: EC: use BURST mode only for MSI notebooks
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
2a84cb9852
commit
6a63b06f3c
@ -575,7 +575,8 @@ acpi_ec_space_handler(u32 function, acpi_physical_address address,
|
|||||||
if (bits != 8 && acpi_strict)
|
if (bits != 8 && acpi_strict)
|
||||||
return AE_BAD_PARAMETER;
|
return AE_BAD_PARAMETER;
|
||||||
|
|
||||||
acpi_ec_burst_enable(ec);
|
if (EC_FLAGS_MSI)
|
||||||
|
acpi_ec_burst_enable(ec);
|
||||||
|
|
||||||
if (function == ACPI_READ) {
|
if (function == ACPI_READ) {
|
||||||
result = acpi_ec_read(ec, address, &temp);
|
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) {
|
switch (result) {
|
||||||
case -EINVAL:
|
case -EINVAL:
|
||||||
|
Loading…
Reference in New Issue
Block a user