From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752296AbcBWKjN (ORCPT ); Tue, 23 Feb 2016 05:39:13 -0500 Received: from mout.gmx.net ([212.227.17.22]:58832 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751094AbcBWKjK (ORCPT ); Tue, 23 Feb 2016 05:39:10 -0500 From: Marc Dietrich To: Arnd Bergmann Cc: Johannes Berg , Thierry Reding , Heikki Krogerus , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, Alexandre Courbot , Stephen Warren Subject: Re: [PATCHv2 3/4] ARM: tegra: use build-in device properties with rfkill_gpio Date: Tue, 23 Feb 2016 11:38:52 +0100 Message-ID: <4048115.S0MS1KQXCA@fb07-iapwap2> User-Agent: KMail/5.1.1 (Linux/4.4.0-3-default; KDE/5.18.0; x86_64; ; ) In-Reply-To: <3086257.esvHq8Yk9N@wuerfel> References: <1453712629-143317-1-git-send-email-heikki.krogerus@linux.intel.com> <5438459.Mb6Ga2Xhyq@wuerfel> <3086257.esvHq8Yk9N@wuerfel> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart28007355.n5LOP7PcBk"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-Provags-ID: V03:K0:OYld2TTs+axyuMOLXd9fZiQNB5OGVJqEZYKGONHWYWttC3gY2NX df3K9biqGBEuAD1OidoIRoZgMmO3Bd/qv4GCwspePMeLbqFhDpabc5mX81xAzrfarKzpYdh 8+Vi64uwyvI/YipX2I8YsOkKSMmlsyZhWsUzScI4PywaP2Lqq8Q5T3y8vZN8xd2Xoik3KZq U+3sMH/pY1FXNKcg73yQA== X-UI-Out-Filterresults: notjunk:1;V01:K0:TtM88GbTr2g=:dZdbFFLcnWjdo8qaXS8xSu cfbTiwX0wVIllMum/GbjFvDAY42I3WZ3XsBmysUrFxqgo8O/7kUmaMqb2rnkDsG37eyfgav9Q WxbagvfCJLXEf2LXgW18Z2Ge2DC1Wu7l+Qc1SXnpe3qu6BpogmiCUUVTi+FS+V9Mvy8AG/ncJ bQF6hsa5JLqfR3msWsqHjzh+IzE1gMQO1S4sl9o0fxCGSKwAU/P15hBGs7ibLI192LCfePIZE Mpm5JhFTLWnSk+uYhwvRrEfAvJ9Nuu+S5kTGcbyxtVxvHxepct2mnSyI3NbyDxWLgpE2hAAdo SwKPlZuu5e0ccGvAa6/3MY8uT1gcuZUiekhAWsyVrRkrfbjTUiVSvcJ161QIwghrV2XZJ+9HV eiauPo12xvqNRhhWQYte7ljSua3+1N4ka5B3EijNTO8iCQTuj9wFgOlxsXHa+T3KHFLWiR3JI VRzj4KCE+KrMyV0i7x12/90MO75ytcJCSFGIJeE2zBwWYCjF+c4dTvln/dLM9p/hT1cOwGNmn qFxvZQZFqrOawTRpXm/Mft15MqxEO7FFr/f3wvRoP63hxWvI1lAztocPS3JEONjVMPr/xPHXP Xsd3FpvqQ3n6FQXwp9kyHHScuP8Nw6eN6v26yx/qKsQtJSjgJ3XR3KjiXrMVFf9TkpKo09T7J lUU/ldZHY7k2MapXp5H6bEIujN2PAPbYFjSi1MHhJy15x8FPaC1G0pNHHgsTgt0kpU0OB8kcO 45BqUwirwN6RnbvKeQ7ZJzQLekkkv2d+sd9rXBS875oFGvnhxvkpU2mWt1k= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nextPart28007355.n5LOP7PcBk Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Am Dienstag, 23. Februar 2016, 11:31:40 CET schrieb Arnd Bergmann: > On Tuesday 23 February 2016 11:15:31 Arnd Bergmann wrote: > > On Thursday 18 February 2016 21:04:49 Johannes Berg wrote: > > > On Tue, 2016-01-26 at 09:42 +0100, Johannes Berg wrote: > > Just for my curiosity: what is the difference between a rfkill-gpio > > device and a gpio-keys device with a KEY_RFKILL code? > > > > arch/arm/boot/dts/bcm4708-netgear-r6250.dts and others seem to > > do the second approach in DT so they don't need to create the > > platform device. > > I found the answer now (after discussing on IRC): just > for reference: KEY_RFKILL is for sending the event to the kernel > when a user presses the gpio butting, this rfkill-gpio turns > the devices on or off when after an RFKILL event is received. yes, paz00 has no hw key. rfkill is triggered via software (rfkill) only. The problem in the past was how to describe such a device in the device tree. Strictly speaking, there is no rfkill device hardware (just an interface). The only hardware that exists is in our case is connected to a hard wired usb bus (wifi dongle), which makes it complicated to attach a DT property or subdevice to it. And a standalone device-tree entry for a non hardware device was rejected in the past. Marc --nextPart28007355.n5LOP7PcBk Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAABCAAGBQJWzDa8AAoJEKyeR39HFBtoNyUIAJbJvrPvhNYucVvuX7+lVt2J 3yn/jFVWk1++pJDqn2pbcVxrnRZ1X9/Y8rwTnFdHBeTppQ71fwpPFs8aJxemKxPG NRTVslnJzdT8sEKgdAa4Xlw4f3sVOOYhQOeJVT1yqXyn3N3HRKEd39PwnsePeZFE h4/EyrAinnN8wOcd5eUkDyGh6q8PRceYfiD5ApH6InGooi0gqY7IsQqnOZV6VZWu TmZEFW8QSbrwxBTJHMrwnelagvAvLXztfuoO44IEbdo3XbH9gC2vau7PBbMF2WhB E1ZsZ9FIO3amiyrV6hTcb8R0RnjNeqebXauLEhmqeS1RFtPOedMUpJLgh6VKIlQ= =cqhn -----END PGP SIGNATURE----- --nextPart28007355.n5LOP7PcBk--