Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2328124imm; Mon, 28 May 2018 06:09:07 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoKz1RFXHFlrgK2Tw+5fLJkFh9kI64nGk5ppscAUSWvd2Xlbgb0McQCbY4rFOYK2AQ/jiSE X-Received: by 2002:a63:b742:: with SMTP id w2-v6mr10553595pgt.343.1527512947045; Mon, 28 May 2018 06:09:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527512947; cv=none; d=google.com; s=arc-20160816; b=BJFWV7bLp95Oys5H+Tlj0u3/dZWAyrUEaLVR5mOp9jl61ivf+BNUdupxewIBEleL31 niJvzNmMd7Jetlf44pYBuqET7iE279gsBZWENxi5wd0ubJmGXtGg6W/P1oFjro8F1d8t DD1iDno3rOu7PWiNyOe48rrkkkUrW1lu+HNqxsXrEeU0uir6g1qXIDyjta7M+gkiRhhg K7qdA3OizMFWNxGtuLjhSSK0PY6i0vWPlkabEnvZMQxB8tAcfj3SHVmzPIUJqUrHhG2L Vn7KzHrg5cEEuTg82+9G21m75HejWRtH7YR4+S+bQnSIFNVSw5L4zAoNB92X6Q6Q2xDk ynwA== 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:dkim-signature :arc-authentication-results; bh=onMsqy6tZhTA4GASlIDUVrzXyK3mGJUp5YiOBY2xY40=; b=U9h37O0Ml6zJxO/2z5N2KjPDjPlQ5xNS+Y5hDV3jh7XNzwHDgbiRCZtF7r1LsbvLPt W9gZIZUSZtgU7M9wYgjTh5YhC2OLRHSGLVHMBOm+GIH33gudO/yBNjumzDAcsohY5Qqc n2QAKnMCSP6E2a3E4+9kJhfo2YxZ/24VSZY7YPJMd3Hq4rFDsbcKiJR5TT/nMDULuAn+ uCUVmMdYpj3hruUnjBDtqIuSQpYSkD3nkIwkq1dK1bwtb2O0FEAch1PTUfFbvoVL8uEP bMn8PF8aawltLq1f7CT6OemRhZdxpoVrVvIXgnGpjbrG9LrZ1hQ/lDmNEi2bYpS+yP9j 6r2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GKDCjc3u; 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 p67-v6si28959781pfp.72.2018.05.28.06.08.52; Mon, 28 May 2018 06:09:07 -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=@kernel.org header.s=default header.b=GKDCjc3u; 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 S1163926AbeE1KwA (ORCPT + 99 others); Mon, 28 May 2018 06:52:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:41244 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1163894AbeE1Kvy (ORCPT ); Mon, 28 May 2018 06:51:54 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1C32B20660; Mon, 28 May 2018 10:51:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527504713; bh=whqmmDtQVu4yekNQDlyS1xTDuvgAvU+Dru6QLaabeds=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GKDCjc3um+72tB1wTLmFuFUK9Zzkby/DlsS4YPrx15fwWRlVR3IJlIq24MIuj/gov pWHm4b0qyOvOqwmSlvKllI8pM+ssFKU1jpayBo3CT60eVZWSmQt6BeaDs5sg3QUB09 LGmOOcEGz6JFAeE35lt9Jp59/N/33OBcO1/sI3JI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bartosz Golaszewski , Sekhar Nori , Sasha Levin Subject: [PATCH 4.14 237/496] ARM: davinci: fix the GPIO lookup for omapl138-hawk Date: Mon, 28 May 2018 12:00:22 +0200 Message-Id: <20180528100329.889014424@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180528100319.498712256@linuxfoundation.org> References: <20180528100319.498712256@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.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Bartosz Golaszewski [ Upstream commit c4dc56be7e26040bfc60ce73425353516a356955 ] The GPIO chip is called davinci_gpio.0 in legacy mode. Fix it, so that mmc can correctly lookup the wp and cp gpios. Note that it is the gpio-davinci driver that sets the gpiochip label to davinci_gpio.0. Fixes: c69f43fb4f26 ("ARM: davinci: hawk: use gpio descriptor for mmc pins") Signed-off-by: Bartosz Golaszewski [nsekhar@ti.com: add a note on where the chip label is set] Signed-off-by: Sekhar Nori Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/arm/mach-davinci/board-omapl138-hawk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- 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_gpi .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), }, };