From: Andrew Morton Subject: Re: [patch 2/3] acpi: compal-laptop: use rfkill switch subsystem Date: Tue, 4 Nov 2008 19:35:26 -0800 Message-ID: <20081104193526.1e1b9c93.akpm@linux-foundation.org> References: <200810292113.m9TLDM2g016601@imap1.linux-foundation.org> <490C30E8.6050708@tuffmail.co.uk> <490D7D5F.8070109@tuffmail.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from smtp1.linux-foundation.org ([140.211.169.13]:56513 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754388AbYKEDg1 (ORCPT ); Tue, 4 Nov 2008 22:36:27 -0500 In-Reply-To: <490D7D5F.8070109@tuffmail.co.uk> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Alan Jenkins Cc: Alan Jenkins , lenb@kernel.org, linux-acpi@vger.kernel.org, cezary.jackiewicz@gmail.com, andi@firstfloor.org, randy.dunlap@oracle.com On Sun, 02 Nov 2008 10:13:51 +0000 Alan Jenkins wrote: > Alan Jenkins wrote: > > allakpm@linux-foundation.org wrote: > > > >> From: Cezary Jackiewicz > >> > >> 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 > >> Cc: Andi Kleen > >> Signed-off-by: Randy Dunlap > >> Signed-off-by: Andrew Morton > >> > > > > 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. Are all of your review issues now addressed? I don't think so. I'll put this patch on hold until we can get this sorted out.