From: Alexey Starikovskiy <astarikovskiy@suse.de>
To: Florian Zumbiehl <florz@florz.de>
Cc: denis.m.sadykov@intel.com, linux-acpi@vger.kernel.org
Subject: Re: ACPI events on T20 thinkpad stop being reported
Date: Mon, 21 Dec 2009 19:40:53 +0300 [thread overview]
Message-ID: <4B2FA515.3020405@suse.de> (raw)
In-Reply-To: <20091221161047.GN2512@florz.florz.dyndns.org>
[-- Attachment #1: Type: text/plain, Size: 983 bytes --]
Hi,
Please check if the attached patch helps
If it does not, please open bug report at bugzilla.kernel.org against ACPI/EC.
Regards,
Alex.
Florian Zumbiehl пишет:
> Hi,
>
> I have here a T20 thinkpad with a T22 BIOS and a 2.6.32 kernel. After
> boot, acpi_listen shows me all the events that are being generated by
> the lid switch, hotkeys, batteries, ac, and maybe more. However,
> when I disconnect and reconnect ac power a few times in rapid
> succession, that leads to all of these events not being reported
> anymore. Suspend to RAM and to disk both don't fix it, only a
> reboot does.
>
> After I posted this on the thinkpad-acpi mailing list, I was told
> that this probably was a problem with the EC (driver|firmware),
> so that's why I am addressing this to you now :-)
>
> The BIOS and EC firmware are the newest versions available
> (1.12 and 1.06, respectively).
>
> Any hints as to how to debug or possibly even fix this would be
> appreciated.
>
> Florian
[-- Attachment #2: acpi_ec_return_udelay_at_transaction_start.patch --]
[-- Type: text/x-diff, Size: 820 bytes --]
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);
prev parent reply other threads:[~2009-12-21 16:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-21 16:10 ACPI events on T20 thinkpad stop being reported Florian Zumbiehl
2009-12-21 16:40 ` Alexey Starikovskiy [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B2FA515.3020405@suse.de \
--to=astarikovskiy@suse.de \
--cc=denis.m.sadykov@intel.com \
--cc=florz@florz.de \
--cc=linux-acpi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.