From patchwork Thu Mar 1 10:34:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10250873 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 DF9A960211 for ; Thu, 1 Mar 2018 10:45:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C98DB28C8F for ; Thu, 1 Mar 2018 10:45:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BC4FF28F82; Thu, 1 Mar 2018 10:45:04 +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 4850728C8F for ; Thu, 1 Mar 2018 10:45:04 +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=b1RDWTagj6bDqwT9rhqGcd+7p8INEjuwgRMcUBM4abY=; b=VBb 0RYFMpw81sO7kgcy2aXputH4Ks5cdzbz0X064Oq6FuMdsdbDLL6EnRaMd+vXLgdgTegqC6l90bYaW r0FsTYKAoF2IfGk2t5yavt+l8LRUxbN8zLrat1gvh90fxUNGo02NSxXxe+bhKRsvut+R0fzv+in8J fLGzZpSfZ9/QrAejPg15mvjopMRPZBwTCJMxUAqcYTl1eEDViyqUzkJeNE+FwhFK56qizBtu8Lez9 xEwN8DA42n64aCuhemR1FHGEXv8/T8ICMPb3n7KUV2JfIhEyRPND2tEGRGx3LKGDNC5wsmUvFjCzl NPjJ3Saqq3AiTTsLtYWqiXlvxBPZD/Q==; 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 1erLhn-0006co-DU; Thu, 01 Mar 2018 10:44:55 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1erLeb-0004LK-5D for linux-arm-kernel@bombadil.infradead.org; Thu, 01 Mar 2018 10:41:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=zC59FFej3p1iQuCtw+bOAS5Fnd5+j9Jcoa/J7yeQ3pY=; b=EFpijk2ZuUPOm9qqRVYigWnIq bM0CulJC9nIcRuhq+pG1jMJd/UQ7vKw3dbfKV/7mHEfBDc5+I6DKsqBQGonMB2o1li13LdL3rQ8zq 7SAxC0KYBzxKY+lnfoZRXnNf3iOkRy2d15g721delG7lC1nYMIrpa8m+AlVz9bqhStIogVYKTxlMv 1Oyv80GIYsA2QqqflvR8H4DoQe6sGLziG4R0ji0tHr8dtSN0zgKlmB5lMPtizYumBelNYjlbvoDcp 1QFHCLN5HNyElS/pkmivF5RrB0d7zvP/ozFfM/O/t+OO1gdU5F+6tXP3mKbRLcnbmEQZ4YqGz3S4h LSHcLjZSA==; Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]) by merlin.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1erLYI-00012N-1S for linux-arm-kernel@lists.infradead.org; Thu, 01 Mar 2018 10:35:06 +0000 Received: by mail-wr0-x244.google.com with SMTP id o76so5536844wrb.7 for ; Thu, 01 Mar 2018 02:34:55 -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=zC59FFej3p1iQuCtw+bOAS5Fnd5+j9Jcoa/J7yeQ3pY=; b=mH7KQ5c41DEkIr8sjBglBIQa3TmmLTvoglSqIEqZvAwYDDhxyd5veQTJpjolsXkdI7 NVR1kuSUbph3PVqVdUfuYDKC8cJ5eo4BtexDEKPkC6l0TkpQP6+wYG+SHXgQTPMvC7ze Us5bw+BgZyWCEaayUZzt5T4YZRS9e1GeoSSPTR7wZv7kpiqVx5M876vznna7Pg4/9R29 QAUoxol68ixvoBcCAjwjNDyarEyWRMrdFJoG12FZzlAK3qtsIrzjLY3UK20Rlb18mbPJ yXrm0oosCZqpOxRYQEaUnFlEF/nAPnpSGg94TS/ZLXqZHIYCrVNLDpqJh8E82N8PB8Vo tvUg== 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=zC59FFej3p1iQuCtw+bOAS5Fnd5+j9Jcoa/J7yeQ3pY=; b=DsRo1itpPjBxA7bUjdo6qKVCSRjIsHSYNjfHvIa6q+/XhITanHhPOiCr79b2z+oS9J 3LaIYtcma36CPtQ2xG9aUkw/VoQ0pb81ZU2G4kwmQxRXOBxmrWt33wLYGZe6Q18MuUSO 9J5Y9bYTOXRHarLCMPXUjEI+jvCERtuQrLEpttenOHb585o3QLlGMnEdD6Z0ACHu7s5D hPXhTyqFABVVO64GlY9h8PP4rOiGWJ4z8zvYWvVdvevBVo+fkhXYE4FRDLEImVlYwEXk k+hwiDkFjb0lrVB31ilM3xKYfX/tMSuleiTfV2o+W92CYV6ER9Nl+7rvIHs4Ch/6oHVb 8qZg== X-Gm-Message-State: APf1xPDAT7oEM7t71we9b7DHbAVczZTyBpRi9YZglwQRsvF9DzZhuXQu Cro8q9EKJ8k8pcMN3Jzb+WgAzw== X-Google-Smtp-Source: AG47ELupOMfjiRSv1zQhKuZCszNhvblWDUO5Zh/5WTl/TlNz0LGolGR4CjZ6NTnLYGlIGMhvMhVt+g== X-Received: by 10.223.171.6 with SMTP id q6mr1352049wrc.267.1519900490986; Thu, 01 Mar 2018 02:34:50 -0800 (PST) Received: from brgl-bgdev.baylibre.local ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id 78sm3465784wmb.25.2018.03.01.02.34.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Mar 2018 02:34:50 -0800 (PST) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Russell King Subject: [PATCH v2] ARM: davinci: fix the GPIO lookup for omapl138-hawk Date: Thu, 1 Mar 2018 11:34:48 +0100 Message-Id: <20180301103448.27233-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-20180301_053506_134471_C8720426 X-CRM114-Status: GOOD ( 14.50 ) 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. Fixes: c69f43fb4f26 ("ARM: davinci: hawk: use gpio descriptor for mmc pins") Signed-off-by: Bartosz Golaszewski Signed-off-by: Bartosz Golaszewski Signed-off-by: Sekhar Nori --- v1 -> v2: - added the Fixes: tag 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), }, };