From patchwork Sun Jun 28 19:34:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 6686711 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CC9D6C05AC for ; Sun, 28 Jun 2015 19:40:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D7ECE202C8 for ; Sun, 28 Jun 2015 19:40:47 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0E79E2021A for ; Sun, 28 Jun 2015 19:40:47 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z9IPY-0006Ma-CW; Sun, 28 Jun 2015 19:38:40 +0000 Received: from mail-la0-x22c.google.com ([2a00:1450:4010:c03::22c]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z9IPU-0006Ew-Pv for linux-arm-kernel@lists.infradead.org; Sun, 28 Jun 2015 19:38:37 +0000 Received: by laar3 with SMTP id r3so41632482laa.0 for ; Sun, 28 Jun 2015 12:38:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=7KwkO6dBGQFyLtZa68LExjqPb+QUisQvyFeCJKo/D5E=; b=sZcHOMpSoy4gDfvRo0wmtDvVR6tQNzn32gqVU8/BmWykiOMRxB4GvGRK+R2qJXl0ib gCXG/H6M6qCkOLRGiimXh/BF5/3T7SdUeprillkTXEvmaAtL4+xmqv1Gm1MCXOW03hTn mbGgeYSdR4tf+9k9/zzOz1wCZpGsXUx7ZRA0F+rXIFZfn/7GuhLo82Ht403mG4vx+AYY hCJqSPcgh97zm+c0djOPX45qIYfomCWaj0f3DL6dDr321puL9VL/ImUaU5n7fVyhaDu6 j7xSNdFu96ql0Zdqj0RyD6JIDE2o7DGTg4boe+EU4P7Hl6+p6zJUFzn7+yY5CXvw277D JCSg== X-Received: by 10.152.206.75 with SMTP id lm11mr10609383lac.41.1435520293530; Sun, 28 Jun 2015 12:38:13 -0700 (PDT) Received: from localhost.localdomain ([46.138.6.114]) by mx.google.com with ESMTPSA id og9sm10068869lbb.22.2015.06.28.12.38.12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 28 Jun 2015 12:38:12 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Stephen Warren , Marc Dietrich , Alexandre Courbot Subject: [PATCH] ARM: tegra: paz00: set gpiod_lookup table conn_id's Date: Sun, 28 Jun 2015 22:34:44 +0300 Message-Id: <1435520160-16862-1-git-send-email-digetx@gmail.com> X-Mailer: git-send-email 2.4.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150628_123837_040632_ACFAB83D X-CRM114-Status: GOOD ( 12.38 ) X-Spam-Score: -2.7 (--) Cc: "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, stable@vger.kernel.org, linux-tegra@vger.kernel.org, Dmitry Osipenko , Mika Westerberg , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 setting conn_id's in gpiod_lookup_table. Signed-off-by: Dmitry Osipenko Fixes: 72daceb (net: rfkill: gpio: Add default GPIO driver mappings for ACPI) Cc: # v3.19+ Acked-by: Alexandre Courbot --- 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..67024f3 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_IDX("tegra-gpio", 25, "reset", 0, 0), + GPIO_LOOKUP_IDX("tegra-gpio", 85, "shutdown", 1, 0), { }, }, };