From patchwork Tue Feb 27 12:14:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10245035 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E05E760362 for ; Tue, 27 Feb 2018 12:15:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CAAD51FF83 for ; Tue, 27 Feb 2018 12:15:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BCBDB28880; Tue, 27 Feb 2018 12:15:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4ECFD1FF83 for ; Tue, 27 Feb 2018 12:15:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=v/JTUKfvjrpoSH8zb6CsltJvNGjFkND5PoGAo8E5hQU=; b=FBY 6BlRalR5GcfgZpYHmFsRY92+8eNPZ/2B9joWg6c0aVmERhvWz4raTgqQyiMlaGI1PCe8taGEvA+wo EAWa3I/pIZqPUcfFJBfIU2VBJMGI6wrkLcDae43nN75+sJupi7e2QrqMHFPiollpD2XOMrhJKRqNr aPMlfpM2S+4EjIipv4F535ZRVz7rYKTo0KrW0GaWGQEfNENpTpP8f84ICeTc3mPBEiepQzUZ/5Qmw 697TnncmS8WLfLI8tz0LOn7W/EEwSiZosN6kqHYoL419ihZDJLbuFUPwNWcGEbiJar9+/kJMX2cS+ HaWIAvMXFEY4Foxb/Oo7M4PfjnEocew==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eqe9v-0007SO-B1; Tue, 27 Feb 2018 12:15:03 +0000 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eqe9r-0007QE-6M for linux-arm-kernel@lists.infradead.org; Tue, 27 Feb 2018 12:15:00 +0000 Received: by mail-wr0-x241.google.com with SMTP id m5so24638712wrg.1 for ; Tue, 27 Feb 2018 04:14:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=ZA79rb1J6Y/VXiA0IzB9V0KGgJNrmdDAgAqwVvjHF/g=; b=POAusWHLnzGHWcX//C58WXwEiBK/uEmz2RlFODqcdlKFgjyvrEzVpQQOIUus+MWRbn S0/VwxdyoIdlupW9l31Sw0mfjsc1j+kThpv/S6IE5zyHYKKoEVp5CCiU5cRSYQNoX8nc YR1NVcXP4gRcyivhrY5bRsCeff1hdcgq+oI1uFLbPh0xCbfkN+R5LkFq5AzLDxtaEk4a doLM1YReiokhNkLER4Q51RP7z7NkV7YD4q76vb8Ne/USaB4w17jj06232/rq0mmCXyCA wBZFPHmlEjpmYZXQQ/G/LlkRlQ5OgYHiFvmrhWT6PSGxUsUa7u0JKwh5CXejMFWJBcAD EHLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ZA79rb1J6Y/VXiA0IzB9V0KGgJNrmdDAgAqwVvjHF/g=; b=jjjuRNcXK27xGxfHA2pxPwi9tdaWJvH2fAr8hp9AKRLCHXDbblE/mkE8G8sk/7b52M tvBePDF60+xCCRceyRkM5vGoo5W8MUJc0PcmT3FE9AQFoCjs951P3Tv3T02CZQ0ZORsr z3jRnkfyp94GQPfl/QzGcjyXOT95gIC46BH2/MXl/ThJnPfMLh68Rl0Fwk6GYRe3W1i2 XgUS580vtCSbjPdWbA5hAovhtAi6KTP6UczKtbOVR0f1WH1wp5fF6oL3XfAE0aLvw25W 2/K+YzoBq0A5cfVuXj5MlDoOo0CGJhJ47FOPrTwLhrSBNqradfsXcGe4A3MJ9dSD+xHr R5rw== X-Gm-Message-State: APf1xPApvXwTBYUI1YfzYAdbLarayMSBEhq0no0+DolLQa5JjT0jQFi9 Xn8l+DhddnvEtpOGeL7bfDcM0DQYrIs= X-Google-Smtp-Source: AH8x2264Mo1mEfrSpzYkVXsQuefmhOUlPLXQ5gIHlxczXU9k1/YjbG54dzCAuEPa5sLJZwQEeIBFuA== X-Received: by 10.223.162.203 with SMTP id t11mr13433310wra.88.1519733686674; Tue, 27 Feb 2018 04:14:46 -0800 (PST) Received: from brgl-bgdev.lan (LFbn-NIC-1-55-252.w2-15.abo.wanadoo.fr. [2.15.147.252]) by smtp.gmail.com with ESMTPSA id x78sm25353014wmd.2.2018.02.27.04.14.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Feb 2018 04:14:46 -0800 (PST) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Russell King Subject: [PATCH] ARM: davinci: fix the GPIO lookup for omapl138-hawk Date: Tue, 27 Feb 2018 13:14:43 +0100 Message-Id: <20180227121443.3191-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.16.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180227_041459_391380_B01073C3 X-CRM114-Status: GOOD ( 12.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bartosz Golaszewski , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Bartosz Golaszewski The GPIO chip is called davinci_gpio.0 in legacy mode. Fix it, so that mmc can correctly lookup the wp and cp gpios. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/board-omapl138-hawk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-davinci/board-omapl138-hawk.c b/arch/arm/mach-davinci/board-omapl138-hawk.c index a3e78074be70..62eb7d668890 100644 --- a/arch/arm/mach-davinci/board-omapl138-hawk.c +++ b/arch/arm/mach-davinci/board-omapl138-hawk.c @@ -127,8 +127,8 @@ static struct gpiod_lookup_table mmc_gpios_table = { .dev_id = "da830-mmc.0", .table = { /* CD: gpio3_12: gpio60: chip 1 contains gpio range 32-63*/ - GPIO_LOOKUP("davinci_gpio.1", 28, "cd", GPIO_ACTIVE_LOW), - GPIO_LOOKUP("davinci_gpio.1", 29, "wp", GPIO_ACTIVE_LOW), + GPIO_LOOKUP("davinci_gpio.0", 28, "cd", GPIO_ACTIVE_LOW), + GPIO_LOOKUP("davinci_gpio.0", 29, "wp", GPIO_ACTIVE_LOW), }, };