From: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
To: Alan Jenkins <aj504@student.cs.york.ac.uk>
Cc: akpm@linux-foundation.org, lenb@kernel.org,
linux-acpi@vger.kernel.org, cezary.jackiewicz@gmail.com,
andi@firstfloor.org, randy.dunlap@oracle.com
Subject: Re: [patch 2/3] acpi: compal-laptop: use rfkill switch subsystem
Date: Sun, 02 Nov 2008 10:13:51 +0000 [thread overview]
Message-ID: <490D7D5F.8070109@tuffmail.co.uk> (raw)
In-Reply-To: <490C30E8.6050708@tuffmail.co.uk>
Alan Jenkins wrote:
> allakpm@linux-foundation.org wrote:
>
>> From: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
>>
>> Removing unnecessary attributes, use rfkill switch subsystem.
>>
>> It depends on the rfkill changes in net-next-2.6.
>>
>> [randy.dunlap@oracle.com: compal-laptop: depends on RKFILL]
>> Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
>> Cc: Andi Kleen <andi@firstfloor.org>
>> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
>> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
>>
>
> Having read rfkill.txt and tested the rfkill conversion for eeepc-laptop,
> I have a few queries about this one. I hope they are useful.
>
> Firstly, does the hardware preserve the rfkill state over power-off / reboot,
> like the EeePC?
>
> If it does, I think rfkill.txt says you need to generate "gratuitous"
> input events on init. That would allow rfkill_input to initialize
> the system rfkill state from the hardware. You should also do so on resume,
> in case someone hibernates, boots into another OS, changes the state, and then
> resumes back into Linux.
>
> Otherwise, the system rfkill state will default to enabled on boot,
> and your rfkill device will be set accordingly. If compal-laptop
> used to preserve the state, I think this would be a regression.
>
Scratch that, I've been re-educated by Herique. If the platform does
make the rfkill state persistent, you should call rfkill_set_default()
at load-time, before rfkill_allocate / _register.
next prev parent reply other threads:[~2008-11-02 10:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-29 21:13 [patch 2/3] acpi: compal-laptop: use rfkill switch subsystem akpm
2008-11-01 10:35 ` Alan Jenkins
2008-11-02 10:13 ` Alan Jenkins [this message]
2008-11-05 3:35 ` Andrew Morton
2008-11-07 2:49 ` Len Brown
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=490D7D5F.8070109@tuffmail.co.uk \
--to=alan-jenkins@tuffmail.co.uk \
--cc=aj504@student.cs.york.ac.uk \
--cc=akpm@linux-foundation.org \
--cc=andi@firstfloor.org \
--cc=cezary.jackiewicz@gmail.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=randy.dunlap@oracle.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox