Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752773AbbF3UqG (ORCPT ); Tue, 30 Jun 2015 16:46:06 -0400 Received: from mout.gmx.net ([212.227.17.22]:63975 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751104AbbF3Up5 (ORCPT ); Tue, 30 Jun 2015 16:45:57 -0400 From: Marc Dietrich To: Dmitry Osipenko Cc: Stephen Warren , Thierry Reding , Alexandre Courbot , Mika Westerberg , "Rafael J. Wysocki" , stable@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] ARM: tegra: paz00: use con_id's to refer GPIO's in gpiod_lookup table Date: Tue, 30 Jun 2015 22:44:40 +0200 Message-ID: <3628722.nhXkFk5ghW@ax5200p> User-Agent: KMail/4.13.3 (Linux/3.16.0-37-generic; KDE/4.13.3; x86_64; ; ) In-Reply-To: <1435673759-11996-1-git-send-email-digetx@gmail.com> References: <1435673759-11996-1-git-send-email-digetx@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart7599505.AiqW3ZIXxa"; micalg="pgp-sha1"; protocol="application/pgp-signature" X-Provags-ID: V03:K0:RdVvpP2a1iS3jeFG6A6eNRzn9FaEFg7ZRWo3SYXa90OMOVBq0XH dpAnB7EG9+vWWJzro6cX6oKMVd+t6AJNh4sPypf7wte0S3I8W1HOoonUGQjrrFPG8T+g5pl b4g9UDdphJLuY5CuYKy8e3tprOVZPY+j6TZzrID/riBppRkSnzJbJadrns17Ou77V5yX6nk 75ifj+E2n4/b0n+FSX/2A== X-UI-Out-Filterresults: notjunk:1;V01:K0:d04ILuP/9A4=:eLaNFPOe35zHnHrioyJHxJ Jiqh7dkAtdAKH47L2IZjgLs67CPDLarThWoYT7u4PpHjtiD7XqT944J8XEqBhj2JUAzZ4yXcB hednClqvVTCRv9WkXpYfto/v/2xdJdXqSmKBUK0Irq9Cqi4M1NLNswVlCQV4n/wIWlWVsdIWT 0HT2XxYf1DWU4MvxgM0QqJUC5TlEJz3643DMUOwe123nFY85deHitgxUDgpIihTyxYvXERZNA ymJ1zLC+oTY61/pLKrQff0r1ts8kFOnyF0Z3cpI7E/WyCl7Ob+lGJ2AOx2Umd3QYv2obrBpvn 9nfvuvRgn3aNoX9idGar0Qox8gzaWHOCYEYS76CL5a66Mt3Vcr7xFPSxXjk6R37SISttWntlO HDI/mE53nP/nEvJMXQk5sVeQnr1AzuUq1SWamtwrzbLk9IBSw+juPpBkDHufAwPXMG4e3hHhc jEy0qE2z8KshNnc5wNWGi/J7+IxGdefdS8Kkpl0fFnpseDb/qvk5ku7pi4PXA08TJeZC7YDvT PcTnInl/N0zaJ51fGUifLrxvUQK7CsGbUyhI5KAqV5gL11MYCABjE3R3PnfTY+YODCUAcM9r/ s6JP3J2ZkmU+1/Cj8ti+wWmphCZmdFWRsgjlT7Z/2X5mv3JP3L6pxtmIueGah7N5abVCmIpUc Cqxjawvj5DtMVwmLzTNkpSufFgrGdXrgVphiba05V4/VeSg== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2764 Lines: 71 --nextPart7599505.AiqW3ZIXxa Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Am Dienstag 30 Juni 2015, 17:15:50 schrieb Dmitry Osipenko: > Commit 72daceb9a10a ("net: rfkill: gpio: Add default GPIO driver mappings > for ACPI") removed possibility to request GPIO by table index for non-ACPI > platforms without changing it users. As result "shutdown" GPIO request > will fail if request for "reset" GPIO succeeded or "reset" will be > requested instead of "shutdown" if "reset" wasn't defined. Fix it by > making gpiod_lookup_table use con_id's instead of indexes. > > Signed-off-by: Dmitry Osipenko > Fixes: 72daceb (net: rfkill: gpio: Add default GPIO driver mappings for > ACPI) Cc: # v3.19+ > Acked-by: Alexandre Courbot beside a small typo in the commit message (is users -> its users) this looks good now. I can confirm that the gpio's are all available now. Reviewed-by: Marc Dietrich > --- > > v2: s/GPIO_LOOKUP_IDX/GPIO_LOOKUP/, otherwise "shutdown" GPIO won't be > requested > > arch/arm/mach-tegra/board-paz00.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/mach-tegra/board-paz00.c > b/arch/arm/mach-tegra/board-paz00.c index fbe74c6..49d1110 100644 > --- a/arch/arm/mach-tegra/board-paz00.c > +++ b/arch/arm/mach-tegra/board-paz00.c > @@ -39,8 +39,8 @@ static struct platform_device wifi_rfkill_device = { > static struct gpiod_lookup_table wifi_gpio_lookup = { > .dev_id = "rfkill_gpio", > .table = { > - GPIO_LOOKUP_IDX("tegra-gpio", 25, NULL, 0, 0), > - GPIO_LOOKUP_IDX("tegra-gpio", 85, NULL, 1, 0), > + GPIO_LOOKUP("tegra-gpio", 25, "reset", 0), > + GPIO_LOOKUP("tegra-gpio", 85, "shutdown", 0), > { }, > }, > }; --nextPart7599505.AiqW3ZIXxa 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.0.22 (GNU/Linux) iQEcBAABAgAGBQJVkv+4AAoJEKyeR39HFBtoKT0H/jgxMMJlg4x39yMDSxDEDJ3x jDH0Sqw5yT/c+UeUfLlHjcGB9JzMS2UiYW3qeBXKGeULm/265EPjnoXOMXJ7QGmF DnvFpZmpZ43lzBsOopNnTc28AGFrMbJZqdG7WMsIjCUFg212M99iS5FSvURRNbjK 8VtY7+eD8FIv6YIs2DbzJ0iOF/bDyldVsVO769U9Aye1+ZJbZvvFH/Zy/Fopa8P9 IIM96kBiSVWzu6e4epp7JTp8MSXK9VxL3TT5y/0QrVzDqHJLUXMa2LBOZfobZHwq RvoZOo8IcR90Ra2IwTom28wjwAEKLAO1e9TmujTiTEB7jekIAo7NAt8Ia5wkKbU= =tPCQ -----END PGP SIGNATURE----- --nextPart7599505.AiqW3ZIXxa-- -- 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/