Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4591675pxj; Wed, 12 May 2021 08:50:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEnBqs5DOzMG/pj2bQN3gph0R4UCQAL5q1SeORcHdjaOFZ8jJXRT/unHQSv/pcLC1OQqKi X-Received: by 2002:a4a:b389:: with SMTP id p9mr28044656ooo.71.1620834643452; Wed, 12 May 2021 08:50:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620834643; cv=none; d=google.com; s=arc-20160816; b=kLjeIfmM/fSBM1K0NQ4LWVZKJlAZMgL0eDYUoXxntn+26X1tRyQriFKmgITrj4gl50 fOKRlzt2XP6HFNYQVMkh6UlZoS9VnDAIyIiDB+o/Gk5fk6E/8BSxNajDfizEgSslw2Qg X15FV1LLEJEtZYfG1w6Bc2aTBYlqz3wj4RWVShy6t1hZI+d7a7wfXUgKGqUIr15AMcj2 UXVHWQdiGvXgNs/31y7jZg7xCgFim9sa11lINotba3I8mAWrtW88zNCMdWMIFmeiQua1 oF0qY6Hck2t5IiYgFQDTzu9IbYdLc0P8yQY5/i0akkJCo2+DVqQ9zp5eB5ZMgBZzUVPl ifTA== 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=LPgRTckyKsOK6CnET/sOvpCg33YeDE+Icai22N7CKUc=; b=AiF+nzjBQUCZHpMxZgPWMz+rW7kE6n/DbuSzUNX2p3o/AvcCHuSkvqVvC9ttHpoAqm 4xvxgW8yg2CiiPbVG4kwzr23HMewcpbjbcHovNhtkWiKZD7GJg7VQSrhMh+hFRcB7jxk tpMbclmHMnEkt1J3Ufbl8gCNzwhXCfIsJFjc/IKTJqg2kszwHUMFgFL4j/kgf36sqEJe gGrXV6qZppP32x0390IGYjpugK/w+WM3zEyZOwVRaGl4fIGnOKdRVmqZdL4cvrugP8Z3 sqbChFofoMpJ5dXEtPSciDnLFvKAVXvwmdxvJBCPAV/3NuMiMjC1ckzaUJbNiAm53u5/ Blww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lUkZPGe4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 w201si181214oia.273.2021.05.12.08.50.29; Wed, 12 May 2021 08:50:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=lUkZPGe4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S236964AbhELPri (ORCPT + 99 others); Wed, 12 May 2021 11:47:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:59890 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233894AbhELPVp (ORCPT ); Wed, 12 May 2021 11:21:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1B1A961462; Wed, 12 May 2021 15:08:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620832136; bh=zRPrOU9WSvHbwkuoPrVWOKzV9Ybny2HbBMfRJlkdlow=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lUkZPGe4cVLEUzLKsM7JDT+pfOMKSYcQN8W3PGrOMWAnOApIppmQRIi1GBRNRYuHv rHU6xHcnOvwdq5IlhwCCdxsvdvqvRajf62Hxhj3M/T5nvjj3GisEwbKZRvV1JeQ3im SUknr3IlVrAINy3pj08DWjbTXyyTMTeP3459SE+M= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Evan Green , Shawn Guo , Bjorn Andersson , Sasha Levin Subject: [PATCH 5.10 157/530] arm64: dts: qcom: sdm845: fix number of pins in gpio-ranges Date: Wed, 12 May 2021 16:44:27 +0200 Message-Id: <20210512144825.005356808@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144819.664462530@linuxfoundation.org> References: <20210512144819.664462530@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Shawn Guo [ Upstream commit 02058fc3839df65ff64de2a6b1c5de8c9fd705c1 ] 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: bc2c806293c6 ("arm64: dts: qcom: sdm845: Add gpio-ranges to TLMM node") Cc: Evan Green Signed-off-by: Shawn Guo Link: https://lore.kernel.org/r/20210303033106.549-2-shawn.guo@linaro.org Signed-off-by: Bjorn Andersson Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index f97f354af86f..ea6e3a11e641 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -2192,7 +2192,7 @@ #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; - gpio-ranges = <&tlmm 0 0 150>; + gpio-ranges = <&tlmm 0 0 151>; wakeup-parent = <&pdc_intc>; cci0_default: cci0-default { -- 2.30.2