From patchwork Mon Dec 21 16:40:53 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Starikovskiy X-Patchwork-Id: 69141 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id nBLGes27019692 for ; Mon, 21 Dec 2009 16:40:54 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751312AbZLUQkx (ORCPT ); Mon, 21 Dec 2009 11:40:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753013AbZLUQkx (ORCPT ); Mon, 21 Dec 2009 11:40:53 -0500 Received: from nat.nue.novell.com ([195.135.221.3]:37734 "EHLO emea5-mh.id5.novell.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751312AbZLUQkw (ORCPT ); Mon, 21 Dec 2009 11:40:52 -0500 Received: from [192.168.101.190] ([149.44.162.75]) by emea5-mh.id5.novell.com with ESMTP; Mon, 21 Dec 2009 17:40:50 +0100 Message-ID: <4B2FA515.3020405@suse.de> Date: Mon, 21 Dec 2009 19:40:53 +0300 From: Alexey Starikovskiy User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Florian Zumbiehl CC: denis.m.sadykov@intel.com, linux-acpi@vger.kernel.org Subject: Re: ACPI events on T20 thinkpad stop being reported References: <20091221161047.GN2512@florz.florz.dyndns.org> In-Reply-To: <20091221161047.GN2512@florz.florz.dyndns.org> X-Enigmail-Version: 0.95.7 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org ACPI: EC: Put back small delay at the transaction start From: Alexey Starikovskiy Commit 2a84cb removed delay needed by some slow controllers (Acer TM4001) Put it back. References: http://bugzilla.kernel.org/show_bug.cgi?id=14747 Signed-off-by: Alexey Starikovskiy --- drivers/acpi/ec.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 75b147f..dce126f 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c @@ -217,6 +217,8 @@ static int ec_poll(struct acpi_ec *ec) { unsigned long flags; int repeat = 2; /* number of command restarts */ + /* allow EC to digest command */ + udelay(ACPI_EC_CDELAY); while (repeat--) { unsigned long delay = jiffies + msecs_to_jiffies(ACPI_EC_DELAY);