Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757287AbYGJNIZ (ORCPT ); Thu, 10 Jul 2008 09:08:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754334AbYGJNIP (ORCPT ); Thu, 10 Jul 2008 09:08:15 -0400 Received: from wr-out-0506.google.com ([64.233.184.235]:11894 "EHLO wr-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754174AbYGJNIO (ORCPT ); Thu, 10 Jul 2008 09:08:14 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:subject:date:user-agent:cc:references:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :message-id:from; b=TMN2hrO2o577KaRKSqRlzFTZ8sZR95GF3IEOnyXIUXJWUIiMvhsIDLGRchVkv0XlKs rmuULIsP4zoiBhQI9EzTDw2D+GprRmbqvmcE7pE5LPuynNTLtEnzgfIppEIlk4ENuyW9 +Dm2v5YNPtSvYzGUdw3IvJ5Y2M3YfIiwxByww= To: Henrique de Moraes Holschuh Subject: Re: [RESEND] [PATCH -next 2/2] acpi,rfkill,backlight: comapl-laptop update - use rfkill switch subsystem Date: Thu, 10 Jul 2008 15:17:37 +0200 User-Agent: KMail/1.9.9 Cc: Cezary Jackiewicz , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, ak@linux.intel.com, Len Brown , Richard Purdie , Andrew Morton References: <20080709231059.778d16f4@debian> <200807092357.28013.IvDoorn@gmail.com> <20080710011201.GC15729@khazad-dum.debian.net> In-Reply-To: <20080710011201.GC15729@khazad-dum.debian.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200807101517.38109.IvDoorn@gmail.com> From: Ivo van Doorn Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1333 Lines: 30 On Thursday 10 July 2008, Henrique de Moraes Holschuh wrote: > On Wed, 09 Jul 2008, Ivo van Doorn wrote: > > It is not mandatory if you are writing rfkill support for a driver that does not > > come with a rfkill switch. Such drivers can make use of the rfkill events produced > > by the hardware which does have such a switch. > > > > When the hardware does have the rfkill switch, then yes rfkill_force_state() is mandatory. > > The get_state() callback function is optional, and allows rfkill to differentiate > > between soft and hardblock. > > Do you want me to mark rfkill_force_state() as mandatory in the docs? It > *IS* the preferred way to deal with firmware/hardware-initiated state > changes, after all. Please do. Thanks. > The rfkill subsystem will limp along without it, even when there are > hardware rfkill lines... but no OSD function will work, as the system will > pick up the change only when someone reads or writes to the state > attribute... That reason alone is good enough for me to mark it mandatory for any drivers which features the rfkill key. :) Ivo -- 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/