Received: by 10.213.65.68 with SMTP id h4csp451898imn; Fri, 16 Mar 2018 08:10:56 -0700 (PDT) X-Google-Smtp-Source: AG47ELv7SODr/ousUXwGZ60e4bD6lzF+EY97vdkIN7YI5Tu8ldy0ubVyDHPUHYAFA+Zp88MSv9Nb X-Received: by 10.99.95.86 with SMTP id t83mr1701581pgb.183.1521213056382; Fri, 16 Mar 2018 08:10:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521213056; cv=none; d=google.com; s=arc-20160816; b=UFxPp/1gdzQAIxoti2g9xe2lKyLI//8tQrklBe60eL3E0gyXwCiCaT21dVxP0O0JI6 TdAVIEVgCJVh7dlKshNmiC5VqyOiY7kcaNzn8Oq0TfdCjog3jbEQteAiLMe+x6px+r2G xLfJFQx6d9fsKxn2yxCUO0KH9dEsWoG7/6N3S138MPF9Kg8VJIca6BDweLA7HQ/6FPp4 qdO+O88TYeSzLy4XFFdA3GosWFqJqHnaeZn01+ZGuE4NErYC94wxnk4WpYa2pz6f0Um+ cX48C3waKiqJni/k1FEGZNOFwnVlQOaIzgJ4PusF5J/LMxXO/LErErXrUfPRFy5xUDth Pzuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=5zlumGLUJrwZCd9LWlqfHD9fqD9DrF8spQ6jUsnGU30=; b=x8uLw/+Lu4iW1UhxjtVCnkvVKYM4xQGHQeWlxKAUJ+ZOIzwnlN11L+4T9K+7J1HKRj Ek6/vdAfDUpujZcOhqwWWaKoUMwg6Oy56dyNix/YmHDLe3fBKbWq57e4UdB4/nnqp5GD MhO8Ij+oVhyL4i/BRcR1WMxp52/A/RKkwWEJR/AFmAdnde3U8EKZ5OMgNOsOdT14gCTe azDsaq4pO0iiF3g37JpXMORsZCQsXGC34+VeZUhBTs5XwOZaJp/Dp7RpHb+Rr3xUNb7T zd0GUD5ubQQ/LrNTMwsLzPAHPLCggyUnjbOcXmIeWV5S1GNeLRMNz0eUpD1SJy2s7dHC 8axA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=aYMWaMUh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s18si5113600pgd.65.2018.03.16.08.10.40; Fri, 16 Mar 2018 08:10:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=aYMWaMUh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752186AbeCPPHu (ORCPT + 99 others); Fri, 16 Mar 2018 11:07:50 -0400 Received: from fllnx209.ext.ti.com ([198.47.19.16]:10441 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750748AbeCPPHt (ORCPT ); Fri, 16 Mar 2018 11:07:49 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id w2GF5sUD021729; Fri, 16 Mar 2018 10:05:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1521212755; bh=tYQIupr9kl1Ew2h9SCfOqjysYbf2plPwzfvO0xlAgeQ=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=aYMWaMUhvI120ZGzOuvtVR6f+qdybQ3nqea40qd4Ot98eqq1gl17gZt6AuCkaDaBM k3D93pM0A4db15Rra7mHd9cfnqL0vWAezzl5lmDtQo95//jdVA4iH+ea/RnNBceWYr Avd1LM+6NHMDDdNniDW3s8Wf8gnO1h6DbFwqrvik= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w2GF5sKx020575; Fri, 16 Mar 2018 10:05:54 -0500 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Fri, 16 Mar 2018 10:05:54 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Fri, 16 Mar 2018 10:05:54 -0500 Received: from [172.24.190.172] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w2GF5pFb002956; Fri, 16 Mar 2018 10:05:52 -0500 Subject: Re: [v2] ARM: davinci: fix the GPIO lookup for omapl138-hawk To: David Lechner , Bartosz Golaszewski , Kevin Hilman , Russell King CC: Bartosz Golaszewski , , References: <20180301103448.27233-1-brgl@bgdev.pl> <2641a421-9823-c0bb-93d9-ca0c64060c51@lechnology.com> From: Sekhar Nori Message-ID: Date: Fri, 16 Mar 2018 20:35:51 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <2641a421-9823-c0bb-93d9-ca0c64060c51@lechnology.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday 15 March 2018 10:05 PM, David Lechner wrote: > On 03/01/2018 04:34 AM, Bartosz Golaszewski wrote: >> 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), >>       }, >>   }; >>   > > Does board-da830-evm.c need the same fix? It also uses "davinci_gpio.1". Yes. looks like fixes are needed here and other places. I will send patches since I have ability to test them. Thanks, Sekhar