Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764322AbYHFM1C (ORCPT ); Wed, 6 Aug 2008 08:27:02 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754621AbYHFM0u (ORCPT ); Wed, 6 Aug 2008 08:26:50 -0400 Received: from out2.smtp.messagingengine.com ([66.111.4.26]:48115 "EHLO out2.smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753631AbYHFM0t (ORCPT ); Wed, 6 Aug 2008 08:26:49 -0400 X-Sasl-enc: ayW8h/ARUh3dWeaqpaB+8YSvRu/X6kI/obK6RkTWhlyM 1218025607 Date: Wed, 6 Aug 2008 09:26:42 -0300 From: Henrique de Moraes Holschuh To: Philip Langdale Cc: LKML , Matthew Garrett , toshiba_acpi@memebeam.org, Ivo van Doorn , linux-wireless@vger.kernel.org Subject: Re: [PATCH 1/1] toshiba_acpi: Add support for bluetooth toggling through rfkill (v2) Message-ID: <20080806122642.GA12783@khazad-dum.debian.net> References: <4894B1B4.6050003@overt.org> <20080803042613.GC6053@khazad-dum.debian.net> <48965716.6020508@overt.org> <20080805212416.GB21738@khazad-dum.debian.net> <48991B83.5030607@overt.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48991B83.5030607@overt.org> X-GPG-Fingerprint: 1024D/1CDB0FE3 5422 5C61 F6B7 06FB 7E04 3738 EE25 DE3F 1CDB 0FE3 User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2341 Lines: 51 On Tue, 05 Aug 2008, Philip Langdale wrote: > Henrique de Moraes Holschuh wrote: >> rfkill-input (now) or userspace (someday) will take care of kicking the >> radio to RFKILL_STATE_UNBLOCKED when (1) issues an event that signals that >> radios don't have to remain blocked. Maybe this is why you see the WLAN >> going on when you deactivate the radio kill switch? > > It's all done behind the scenes I think (it's an ipw2200 device). There's > no rfkill integration from that driver. Then it is probably not turning the device on, but rather, reverting its state. This is normal with hardware like the ipw2200 that has a hardware rfkill line. >> And rfkill-input will soon be enhanced to let the user configure it to do >> something different if he wants. Your driver doesn't (and shouldn't) >> hardcode policy about it. > > Ok, that makes things much easier for me :-) But it means that for now the > user will have to manually kick the device. Actually, all the users have to do right now is to have rfkill-input loaded. It *already* kicks all devices online when you release the master rfkill switch. >> Thanks. Please take note that rfkill will, right now, try to BLOCK all >> radios on suspend. That will be changed soon (2.6.28 at the latest), and >> your driver will have to handle blocking radios on suspend directly if it is >> needed for toshibas. > > Why is this necessary? Doesn't the radio power down as part of the suspend > process? How would I tell what the hardware is doing? Some network drivers want to do it themselves, so now it will be the job of every driver to know whether it should do something or not. To test your platform to know if you will need to do something, just comment the rfkill->toggle_radio in rfkill_suspend, and check if your radios are still transmitting when you suspend. I really doubt any laptop has that problem, though. -- "One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/