Skip to content

Commit

Permalink
ACPI: EC: use BURST mode only for MSI notebooks
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Alexey Starikovskiy authored and Len Brown committed Aug 30, 2009
1 parent 2a84cb9 commit 6a63b06
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/acpi/ec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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:
Expand Down

0 comments on commit 6a63b06

Please sign in to comment.