From patchwork Fri Aug 28 19:29:44 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Starikovskiy X-Patchwork-Id: 44573 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n7SJTfRH017175 for ; Fri, 28 Aug 2009 19:29:46 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752158AbZH1T3n (ORCPT ); Fri, 28 Aug 2009 15:29:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752789AbZH1T3n (ORCPT ); Fri, 28 Aug 2009 15:29:43 -0400 Received: from charybdis-ext.suse.de ([195.135.221.2]:52885 "EHLO emea5-mh.id5.novell.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752158AbZH1T3n (ORCPT ); Fri, 28 Aug 2009 15:29:43 -0400 Received: from [127.0.1.1] ([149.44.162.75]) by emea5-mh.id5.novell.com with ESMTP; Fri, 28 Aug 2009 21:29:43 +0200 From: Alexey Starikovskiy To: Len Brown Cc: Linux-acpi@vger.kernel.org Subject: [PATCH 2/3] ACPI: EC: use BURST mode only for MSI notebooks Date: Fri, 28 Aug 2009 23:29:44 +0400 Message-ID: <20090828192944.19961.76281.stgit@thinkpad> In-Reply-To: <20090828192938.19961.63714.stgit@thinkpad> References: <20090828192938.19961.63714.stgit@thinkpad> User-Agent: StGIT/0.14.2 MIME-Version: 1.0 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org Signed-off-by: Alexey Starikovskiy --- drivers/acpi/ec.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 78f8380..829e62e 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c @@ -627,7 +627,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); @@ -648,7 +649,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: