From patchwork Wed May 12 14:44:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 435602 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp5015797jao; Wed, 12 May 2021 10:05:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3TF+WbbNA4nP0orKVVUs+t+cXN/LWyGsUo1cArbxpT/xT0emNf5zUGgHqwWB3BCzlB2V2 X-Received: by 2002:a05:6e02:1d9b:: with SMTP id h27mr33603105ila.243.1620839154543; Wed, 12 May 2021 10:05:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620839154; cv=none; d=google.com; s=arc-20160816; b=JOBSAkvgUDlOtBDBXlnvO/TK9TpkWCSANVHTFFAZYk96FlMcpWMxLSLwYaigADkAVm MGq1LvfCTO5rGRekHs3w9DndMQMA8XoujJxTA/evjvsXUwJiZLjigZVOzbKkcLicwSEK paCqYQuNHKltk98NkeO+nChaU87ComNfI/3cF1WR4eNVNlnbyutMHuzwxtf8rXPBgxag 6WIIi3LNBF2lnpgORtoqiKXcK5EK1oBij8/e76XwabQoX5P5aI6dY48VpB9g+G4djICN DwLQbQH8VLysPUClIWDRckUTZN7oUfTDb/6550vxyAG0HggdRRGsLJRZ81QhPrRTarHD 7c6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=rAetcoN7R2Tol4PAf7QZBAQmRKHZBTFRJ9LlXRhtTdo=; b=eSVZlDxGlnS19LJk4KOb/rjOHG9vMK0Pl5nrUlmkGmiJ+ef9T1bcW3ZvCoJyBRMXcZ rFZNFI17bQYpLRnpVPLi6MTeeWHLQYY4LjNnZHeBTkrSIniCgfkC28YTN19QIVIia6F8 41wDDvkHj52EEzzRKr2ViHKib+/JfMdOEQiw/RDa5DRqLyDqOO4o9KsEYdeCxwNBNKG7 xGClC932L2YaCaUjrh5PdotahdXrD3npM4xs0bEhy1Vk6JzPojTNgUdfA1ocdfYuW0Ua IAPfAyElQfiZQ2Ibeu07Gb+L2nQUIanYzW/k1m8l1CpQxlbD4Dh7GTF5TPdg03FqkoSf zMdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=f4iHx7GW; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q8si330223ior.12.2021.05.12.10.05.54; Wed, 12 May 2021 10:05:54 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=f4iHx7GW; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235509AbhELQOV (ORCPT + 12 others); Wed, 12 May 2021 12:14:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:47592 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235891AbhELQBo (ORCPT ); Wed, 12 May 2021 12:01:44 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 04AA26194C; Wed, 12 May 2021 15:33:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620833585; bh=daVrEhNWEutCWmgTYzFt/rnAns5RkELs5ZGZFby62Qw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f4iHx7GW7Hnu1ST6N04E2ClrnqvtjuW4olv5cpPQFOXbOh/GX1/rb1b4uQ2fbNuN0 BVSyq9stq6r0rNA0OY2imZ0ShW8movRX7sKQAdLejhPfPPS52kSKDsH+S581tWbPgw GsujS1gpQMXK8Uq4DRa9orx8oks1aYaXkOMuW/oQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bjorn Andersson , Shawn Guo , Sasha Levin Subject: [PATCH 5.11 181/601] arm64: dts: qcom: sm8250: fix number of pins in gpio-ranges Date: Wed, 12 May 2021 16:44:18 +0200 Message-Id: <20210512144833.797517589@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144827.811958675@linuxfoundation.org> References: <20210512144827.811958675@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Shawn Guo [ Upstream commit e526cb03e2aed42866a0919485a3d8ac130972cf ] The last cell of 'gpio-ranges' should be number of GPIO pins, and in case of qcom platform it should match msm_pinctrl_soc_data.ngpio rather than msm_pinctrl_soc_data.ngpio - 1. This fixes the problem that when the last GPIO pin in the range is configured with the following call sequence, it always fails with -EPROBE_DEFER. pinctrl_gpio_set_config() pinctrl_get_device_gpio_range() pinctrl_match_gpio_range() Fixes: 16951b490b20 ("arm64: dts: qcom: sm8250: Add TLMM pinctrl node") Cc: Bjorn Andersson Signed-off-by: Shawn Guo Link: https://lore.kernel.org/r/20210303033106.549-4-shawn.guo@linaro.org Signed-off-by: Bjorn Andersson Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.30.2 diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 7d885d974ceb..415cf6eb5e36 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -1877,7 +1877,7 @@ #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; - gpio-ranges = <&tlmm 0 0 180>; + gpio-ranges = <&tlmm 0 0 181>; wakeup-parent = <&pdc>; qup_i2c0_default: qup-i2c0-default {