LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>,
pm list <linux-pm@lists.linux-foundation.org>,
ACPI Devel Maling List <linux-acpi@vger.kernel.org>,
Alan Stern <stern@rowland.harvard.edu>,
David Brownell <david-b@pacbell.net>, Greg KH <greg@kroah.com>,
Len Brown <lenb@kernel.org>, LKML <linux-kernel@vger.kernel.org>,
Shaohua Li <shaohua.li@intel.com>,
Alexey Starikovskiy <astarikovskiy@suse.de>,
Johannes Berg <johannes@sipsolutions.net>
Subject: Re: suspend slow in 2.6.25-rc6 (was Re: Suspend and hibernation patchset against -rc6)
Date: Wed, 19 Mar 2008 21:23:23 +0100 [thread overview]
Message-ID: <20080319202323.GA1811@elf.ucw.cz> (raw)
In-Reply-To: <alpine.LFD.1.00.0803190742450.3020@woody.linux-foundation.org>
Hi!
> > Ok, 7c0... is innocent. Reverting not only the mdelay, but also rest
> > of drivers/acpi/ec.c patch fixed the
> > "rc6-breaks-backlight-in-X-over-lid-close", good.
>
> Can you clarify a bit?
>
> Do you mean that the full revert of 2c81ce4 that already got committed is
> sufficient for you, or do you need to totally undo everything we've done
> to ec.c since -rc5, and thus also to revert the _other_ revert we did (in
> 4af8e10a6c57e7292862bd1703712f0565c7e429)?
I did some more testing, and realized I was wrong. We need to totally
undo everything we've done to ec.c since -rc5... (that has small
sideffect of brightness up/down keys no longer working -- regression
since 2.6.24, but saves us from "backlight gone after
closing/reopening lid" which is _NASTY_ regression from 2.6.25-rc5).
ACPI sucks.
I.e. this patch:
Revert ec.c to 2.6.25-rc5 state:
* this fixes backlight after closing/reopening the lid while in X on
thinkpad x60
* unfortunately it breaks fn-home/end keyboard brightness control
Signed-off-by: Pavel Machek <pavel@suse.cz>
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c
index 7222a18..caf873c 100644
--- a/drivers/acpi/ec.c
+++ b/drivers/acpi/ec.c
@@ -943,7 +943,11 @@ int __init acpi_ec_ecdt_probe(void)
boot_ec->command_addr = ecdt_ptr->control.address;
boot_ec->data_addr = ecdt_ptr->data.address;
boot_ec->gpe = ecdt_ptr->gpe;
- boot_ec->handle = ACPI_ROOT_OBJECT;
+ if (ACPI_FAILURE(acpi_get_handle(NULL, ecdt_ptr->id,
+ &boot_ec->handle))) {
+ pr_info("Failed to locate handle for boot EC\n");
+ boot_ec->handle = ACPI_ROOT_OBJECT;
+ }
} else {
/* This workaround is needed only on some broken machines,
* which require early EC, but fail to provide ECDT */
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
pomozte zachranit klanovicky les: http://www.ujezdskystrom.info/
next prev parent reply other threads:[~2008-03-19 21:58 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-12 0:29 Suspend and hibernation patchset Rafael J. Wysocki
2008-03-17 22:17 ` Suspend and hibernation patchset against -rc6 Rafael J. Wysocki
2008-03-18 12:07 ` Pavel Machek
2008-03-18 13:06 ` suspend slow in 2.6.25-rc6 (was Re: Suspend and hibernation patchset against -rc6) Pavel Machek
2008-03-18 13:07 ` Pavel Machek
2008-03-18 17:07 ` Pavel Machek
2008-03-18 18:48 ` Alexey Starikovskiy
2008-03-18 23:00 ` Pavel Machek
2008-03-18 17:31 ` Linus Torvalds
2008-03-18 22:52 ` Pavel Machek
2008-03-18 23:05 ` Pavel Machek
2008-03-19 0:40 ` Linus Torvalds
2008-03-19 10:19 ` Pavel Machek
2008-03-19 14:42 ` Linus Torvalds
2008-03-19 20:24 ` Pavel Machek
2008-03-19 10:56 ` Pavel Machek
2008-03-19 11:48 ` Pavel Machek
2008-03-19 14:47 ` Linus Torvalds
2008-03-19 14:54 ` Pavel Machek
2008-03-19 20:23 ` Pavel Machek [this message]
2008-03-19 20:35 ` Alexey Starikovskiy
2008-03-19 20:47 ` Rafael J. Wysocki
2008-03-19 20:58 ` Pavel Machek
2008-03-19 21:07 ` Alexey Starikovskiy
2008-03-19 21:43 ` Rafael J. Wysocki
2008-03-19 21:56 ` [linux-pm] " Rafael J. Wysocki
2008-03-19 21:57 ` Pavel Machek
2008-03-19 21:58 ` Rafael J. Wysocki
2008-03-19 22:02 ` Pavel Machek
2008-03-19 22:13 ` Rafael J. Wysocki
2008-03-19 22:21 ` Pavel Machek
2008-03-20 15:06 ` Henrique de Moraes Holschuh
2008-03-20 15:53 ` Pavel Machek
2008-03-18 23:20 ` Pavel Machek
2008-03-18 23:45 ` Alexey Starikovskiy
2008-03-19 11:49 ` Pavel Machek
2008-03-20 15:19 ` Henrique de Moraes Holschuh
2008-03-20 15:50 ` Alexey Starikovskiy
2008-03-20 22:26 ` Henrique de Moraes Holschuh
2008-03-18 23:43 ` Pavel Machek
2008-03-26 23:51 ` Suspend and hibernation patchset against -rc7 Rafael J. Wysocki
2008-04-02 0:27 ` Suspend and hibernation patchset against -rc8 Rafael J. Wysocki
2008-04-13 17:39 ` Suspend and hibernation patchset against -rc9 Rafael J. Wysocki
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=20080319202323.GA1811@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=astarikovskiy@suse.de \
--cc=david-b@pacbell.net \
--cc=greg@kroah.com \
--cc=johannes@sipsolutions.net \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=rjw@sisk.pl \
--cc=shaohua.li@intel.com \
--cc=stern@rowland.harvard.edu \
--cc=torvalds@linux-foundation.org \
--subject='Re: suspend slow in 2.6.25-rc6 (was Re: Suspend and hibernation patchset against -rc6)' \
/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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).