From patchwork Wed May 12 14:44:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 435636 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp5107428jao; Wed, 12 May 2021 12:10:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhvjdKk6HnZuHeD7T5ctt0Z8y3lkEVqzLCcJn2LOCTkJAHZ1wyiM6q/I67mOFmszbmdG1x X-Received: by 2002:a05:6638:138e:: with SMTP id w14mr15881449jad.33.1620846620616; Wed, 12 May 2021 12:10:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620846620; cv=none; d=google.com; s=arc-20160816; b=wHzxHiXw/EOedSAqtgwaClKrYfc3JlTBOjDS8jSFfl1Igcq/3VblnrlGfbV1yjTNQW 4nnO2LQmpdNZWMpGY7DvX5fiZkbe7C8rBfhalNExkWCtnyGohhWcIfIzQlC/WE5NFPxh jyruPCKB+I1EFBc2VBj9P3nL6iS2GIOy9QtKhOHkRt448xhb7dmfXeZybeupE6563CDv B1c+FaLMKcIZJiFxDLH43TwM2S5Vxdr9nx95Je63sYtgtTQyy+ZKM3l7WjpvdK5l+BUu DB9vQRQYpolsplvQ+UO9Sx3x7M+Z/xgAOJAm4k2dNX+VzOrE2Fjz9D/FT/2/B/WyL0Jk O/NQ== 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=a+duSZSdPwFU6EuOgYDF1MK/6Xndqda79GfhBLuaMbw=; b=J72y6/7ockuxATOAkwzV8kh07t2aBFmhP//CZ1hI6Dqu/qfaSu63xCL0xNo4DGaJh4 G0UcTcPNq2K3aE/3BQeEook5q35q1ijRQRcaIIjNeb5kLOUYZHWfvZzZtrllnMntsqVd W9OW2uEBsabxjOZOBgjAeUhslCx7pNYdEXoH8lWUiy+XWuP6qn2eDmMuIoaqkmnBYr2i cC4s00fgOuV9WAqtKZCadHZRtGrEPyIy1CGttFUzT/8ePqRaVX3iZExVUUvm1xiOEsDG haRoGgBJw9ccmwgd3Bj6upsJ15jKMo6syK8AKURn3cmDGvKPWeBhTQObMomXoMDM+t+6 x1Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="ao7GF/U4"; 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.12.10.20; Wed, 12 May 2021 12:10:20 -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="ao7GF/U4"; 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 S239497AbhELQjQ (ORCPT + 12 others); Wed, 12 May 2021 12:39:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:49322 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241941AbhELQbR (ORCPT ); Wed, 12 May 2021 12:31:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7052F61940; Wed, 12 May 2021 15:57:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620835067; bh=DVehK74yvNOebXW5lSHjTuE1FIdvVj5Jqj0miC5N7/k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ao7GF/U4s/jAIh5I0m1TSL659m739TAd3A7K9sjHAJMNmO+yqn0B2IRF9kqBEj+pl IE+UQ9m4ceMSNEgi9YA74hRCYrmtx6jmd4L3dF+ffhk4nCbAYkFT4ZC1ocDrnip3+v EMPb7rIxji4NDxylDkZ4yAFJ1SN3Ui8jMpCzLw3U= 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.12 196/677] arm64: dts: qcom: sdm845: fix number of pins in gpio-ranges Date: Wed, 12 May 2021 16:44:02 +0200 Message-Id: <20210512144843.765318767@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144837.204217980@linuxfoundation.org> References: <20210512144837.204217980@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 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(-) -- 2.30.2 diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 454f794af547..6a2ed02d383d 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -2382,7 +2382,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 {