From: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
To: andrej.gelenberg@udo.edu
Cc: Corentin Chary <corentin.chary@gmail.com>,
linux acpi <linux-acpi@vger.kernel.org>,
acpi4asus-user@lists.sourceforge.net,
Matthew Garrett <mjg@redhat.com>
Subject: Re: eeepc-laptop: bugreport
Date: Sun, 15 Nov 2009 12:44:40 +0000 [thread overview]
Message-ID: <4AFFF7B8.2070508@tuffmail.co.uk> (raw)
In-Reply-To: <cone.1258285991.924736.2588.1000@eeekiste>
andrej.gelenberg@udo.edu wrote:
> Hi,
>
> Corentin Chary writes:
>
>> Matthew, you added hotplug in commit
>> 5740294ca3a9b113fe146f2826effb69ca50008d,
>> it was needed for 701/900/901. Do you know if it's still needed for
>> 1005ha ?
>
> Is it not better to use rfkill-switch provided from wlan-driver when?
> At least Atheros drivers support rfkill propertly. You can make it LED
> for that eeepcs and set the default trigger to rfkill. I have tried to
> make it so, but on 1005ha it is a proper rfkill.
>
> I have tried to make the devicesearch for hotplug propertly, but it cause
> the system freeze. (http://bugzilla.kernel.org/show_bug.cgi?id=14570#c1)
At least on the original systems, the eeepc-laptop driver has no way to
control the wireless LED directly. The wireless LED is set by the WLDS
acpi method (when the wireless is enabled/disabled).
The pci hotplug in the eeepc-laptop driver doesn't actually save any
power. The WLDS acpi method is what actually "unplugs" the PCI slot.
What eeepc-laptop does is notify the kernel after the fact, so that the
wireless driver doesn't try to talk to hardware that isn't there.
Without this notification, the wireless driver isn't able to recover
when the wireless is toggled off and back on again.
Unfortunately, the BIOS doesn't tell us in advance which device it is
going to unplug. Hence the hardcoded bus/slot.
We may be able to filter the notifications. The _ADR field on the P0P*
devices tells us which PCI bridge device it corresponds to. So we can
hopefully avoid toggling the wrong device and disabling the LAN on 1005ha.
But I don't know how to find the _right_ device in a generic way (or
detect that hotplug is not needed and so we should not toggle any device).
Alan
next prev parent reply other threads:[~2009-11-15 12:44 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cone.1258203372.445001.1633.1000@eeekiste>
[not found] ` <71cd59b00911140641i1502e95bt81d87db848feaf0@mail.gmail.com>
[not found] ` <cone.1258211472.464906.1633.1000@eeekiste>
2009-11-15 9:39 ` eeepc-laptop: bugreport Corentin Chary
2009-11-15 11:53 ` andrej.gelenberg-KJIyc1CJxjQ
2009-11-15 12:37 ` Alan Jenkins
2009-11-15 16:06 ` andrej.gelenberg-KJIyc1CJxjQ
[not found] ` <4B002951.4080704@tuffmail.co.uk>
[not found] ` <cone.1258304218.643429.1671.1000@eeekiste>
2009-11-15 17:07 ` Alan Jenkins
2009-11-15 17:17 ` Corentin Chary
2009-11-15 17:32 ` andrej.gelenberg
2009-11-15 17:43 ` Alan Jenkins
2009-11-15 18:05 ` andrej.gelenberg
2009-11-15 18:31 ` Corentin Chary
2009-11-15 18:56 ` Matthew Garrett
2009-11-15 18:06 ` Matthew Garrett
2009-11-15 18:11 ` andrej.gelenberg
2009-11-15 18:15 ` Matthew Garrett
2009-11-15 18:39 ` andrej.gelenberg
2009-11-15 12:44 ` Alan Jenkins [this message]
2009-11-15 15:05 ` andrej.gelenberg-KJIyc1CJxjQ
2009-11-15 15:54 ` Alan Jenkins
2009-11-15 16:02 ` Matthew Garrett
2009-11-15 16:11 ` Alan Jenkins
2009-11-15 16:14 ` Matthew Garrett
2009-11-15 18:16 ` Matthew Garrett
2009-11-15 18:22 ` andrej.gelenberg-KJIyc1CJxjQ
2009-11-15 18:27 ` Matthew Garrett
2009-11-15 15:56 ` Matthew Garrett
2009-11-15 15:59 ` Alan Jenkins
2009-11-15 15:52 ` Matthew Garrett
2009-11-15 19:19 ` andrej.gelenberg-KJIyc1CJxjQ
2009-11-26 15:03 ` Corentin Chary
2009-11-26 16:45 ` andrej.gelenberg-KJIyc1CJxjQ
2009-11-26 16:48 ` Matthew Garrett
2009-11-27 11:21 ` andrej.gelenberg-KJIyc1CJxjQ
2009-11-27 11:27 ` Alan Jenkins
2009-11-27 12:27 ` andrej.gelenberg
2009-11-27 17:25 ` Matthew Garrett
2009-11-27 20:26 ` andrej.gelenberg-KJIyc1CJxjQ
2009-11-27 20:43 ` Corentin Chary
2009-11-27 20:55 ` andrej.gelenberg-KJIyc1CJxjQ
2009-11-27 21:58 ` Matthew Garrett
2009-12-07 21:23 ` Corentin Chary
2009-12-07 21:28 ` Matthew Garrett
2009-12-13 21:16 ` [PATCH] eeepc-laptop: disable pci hotplug code when all notifiers fail to load Corentin Chary
2009-12-16 10:58 ` Corentin Chary
2009-11-27 17:19 ` eeepc-laptop: bugreport Matthew Garrett
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=4AFFF7B8.2070508@tuffmail.co.uk \
--to=alan-jenkins@tuffmail.co.uk \
--cc=acpi4asus-user@lists.sourceforge.net \
--cc=andrej.gelenberg@udo.edu \
--cc=corentin.chary@gmail.com \
--cc=linux-acpi@vger.kernel.org \
--cc=mjg@redhat.com \
/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.