Return-path: Received: from senator.holtmann.net ([87.106.208.187]:36780 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752456AbZHAVsv (ORCPT ); Sat, 1 Aug 2009 17:48:51 -0400 Subject: Re: [PATCH 1/2] input: Add KEY_RFKILL_ALL From: Marcel Holtmann To: Matthew Garrett Cc: linux-input@vger.kernel.org, johannes@sipsolutions.net, linux-wireless@vger.kernel.org, dmitry.torokhov@gmail.com In-Reply-To: <20090801205445.GA23751@srcf.ucam.org> References: <1249152859-14769-1-git-send-email-mjg@redhat.com> <1249159133.3491.13.camel@localhost.localdomain> <20090801204534.GA23642@srcf.ucam.org> <1249159942.3491.21.camel@localhost.localdomain> <20090801205445.GA23751@srcf.ucam.org> Content-Type: text/plain Date: Sat, 01 Aug 2009 14:48:47 -0700 Message-Id: <1249163327.3491.24.camel@localhost.localdomain> Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: Hi Matthew, > > actually if the key is clearly hardwired to WLAN, then it should not > > even show up as input event at all. This is one of the mis-concepts of > > the old RFKILL subsystem. No need to send an input event if the platform > > driver is going to rfkill that device anyway. > > There's still a policy decision. Does it kill internal devices, or does > it kill all attached wlan devices? > > > Remember that in the end it is just a key and whatever the user does > > with it is users policy. So in summary it is up to the platform driver > > to emit the proper key. For some it might be still KEY_WLAN, for other > > it might be KEY_RFKILL. Sounds fair? > > I agree on the technical side, but not the naming. KEY_WLAN is an > rfkill-related key, so introducing KEY_RFKILL is potentially confusing. > KEY_RFKILL_ALL isn't. why is it confusing? I don't understanding your argument here. I think the KEY_RFKILL_ALL is confusing is the user policy then only kills WiFi devices or toggles between various on/off combinations. Regards Marcel