Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3705746imm; Mon, 18 Jun 2018 02:40:13 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIup/rm3UshfKJ3md12ICrGnMSIKBlgR80YZm7GP59QZ6B0oSqCoA7EkDXIoosSvyGlUpej X-Received: by 2002:a63:7b03:: with SMTP id w3-v6mr10574020pgc.52.1529314813208; Mon, 18 Jun 2018 02:40:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529314813; cv=none; d=google.com; s=arc-20160816; b=aWT8Lr5sjKTCIPy2AVBmBMQ73QvIaPbOZG1Zp9UeJwFeGCHAjrJyiPLI0hJxcIkVTD 5lyVCzVyD+qrCeLT3TDsusBSuNQ6SFqmBcYuFBk74Jg0xKnE0W0VHViRBEHZKTxaP1Li wwH7+QcLeeYmy5/rwt9MbNWGMmKxBU1GXkfZgvN9dpB5+tDFbYaAV23jR8M16KRSXSzt wIYigXCHop1Cwx1JmaB6kZf5UVWSXFUgpahJ89MDjZrjFA5T6jAKjtaJGPrmq65xzY1r 6kFD+MD6fm3b3HihnjfnCCw3JPLZEZIvKXt+yyiUj0C1dLEEJBT92tUoMCh2NVNyVExc 5YEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=iPAm8g1ZrxaZSQYWDP6B3iIGuZ8+wzw9ozgpF8Dx/ug=; b=hObSPCsuW0n80ZF1zUS25sgaLaPewLxXUBnXh0nD5HB6VGxVVLSf8mye/bx6UilZG2 ETRl3lt9pRsYD9cEOpS8zCcWo8R0LrmYJcUibQR7t6PD5ACntSDPYfJqWA30xa9Dn04x cXiFvXL9AIxAYUOgp05qIIxb3wSB9qnITDWcpzICLU477jZmJvTQ0yVCXPUTLnV8m5Yo Eomk5K3pDlrJK98w5fPY401a0A5hsN9sZMrOJFTQ0s5pwI3UEDitcLjmXu52kuIJfHNx g308CA9y0sIqN2b5zlZuHTVzKShMtvm3EEdc4UrFvZCkLUCuMziy+BlcWrjyeHR7OVIT wQmQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p25-v6si13441951pfn.131.2018.06.18.02.39.59; Mon, 18 Jun 2018 02:40:13 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935979AbeFRJih (ORCPT + 99 others); Mon, 18 Jun 2018 05:38:37 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:55790 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755125AbeFRIXY (ORCPT ); Mon, 18 Jun 2018 04:23:24 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id A662CC7F; Mon, 18 Jun 2018 08:23:23 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, David Lechner , Sekhar Nori , Sasha Levin Subject: [PATCH 4.16 141/279] ARM: davinci: board-omapl138-hawk: fix GPIO numbers for MMC/SD lookup Date: Mon, 18 Jun 2018 10:12:06 +0200 Message-Id: <20180618080614.670004864@linuxfoundation.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180618080608.851973560@linuxfoundation.org> References: <20180618080608.851973560@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: Sekhar Nori [ Upstream commit d45622c0eaa5992a1a2248cbe93e1ff7a2da7be4 ] commit c4dc56be7e26 ("ARM: davinci: fix the GPIO lookup for omapl138-hawk") fixed the GPIO chip name for look-up of MMC/SD CD and WP pins, but forgot to change the GPIO numbers passed. The GPIO numbers are not offsets from within a 32 GPIO bank. Fix the GPIO numbers as well as remove the misleading comment. Fixes: c4dc56be7e26 ("ARM: davinci: fix the GPIO lookup for omapl138-hawk") Reviewed-by: David Lechner Signed-off-by: Sekhar Nori Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/arm/mach-davinci/board-omapl138-hawk.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) --- a/arch/arm/mach-davinci/board-omapl138-hawk.c +++ b/arch/arm/mach-davinci/board-omapl138-hawk.c @@ -123,12 +123,16 @@ static const short hawk_mmcsd0_pins[] = -1 }; +#define DA850_HAWK_MMCSD_CD_PIN GPIO_TO_PIN(3, 12) +#define DA850_HAWK_MMCSD_WP_PIN GPIO_TO_PIN(3, 13) + 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.0", 28, "cd", GPIO_ACTIVE_LOW), - GPIO_LOOKUP("davinci_gpio.0", 29, "wp", GPIO_ACTIVE_LOW), + GPIO_LOOKUP("davinci_gpio.0", DA850_HAWK_MMCSD_CD_PIN, "cd", + GPIO_ACTIVE_LOW), + GPIO_LOOKUP("davinci_gpio.0", DA850_HAWK_MMCSD_WP_PIN, "wp", + GPIO_ACTIVE_LOW), }, };