diff mbox

ACPI events on T20 thinkpad stop being reported

Message ID 4B2FA515.3020405@suse.de (mailing list archive)
State RFC, archived
Headers show

Commit Message

Alexey Starikovskiy Dec. 21, 2009, 4:40 p.m. UTC
None
diff mbox

Patch

ACPI: EC: Put back small delay at the transaction start

From: Alexey Starikovskiy <astarikovskiy@suse.de>

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 <astarikovskiy@suse.de>
---

 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);