Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4592302pxj; Wed, 12 May 2021 08:51:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPDTohWv0LgJ7jsai3ks2GqWjGeW9uE/4UsLEAb8bHos9SafcEUfTn6NeATHjQ3PhQ8p+U X-Received: by 2002:a05:6402:524d:: with SMTP id t13mr44576887edd.209.1620834686126; Wed, 12 May 2021 08:51:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620834686; cv=none; d=google.com; s=arc-20160816; b=hT8cDg0WWIYBUL2gE/ftiGZX2gH9LrwXAN9ZrbwdFLh6FwZ31zoMXY8ciI+d+ft/YI uLdgpmvhkvuA1imwQAXFfpY4v1qGvH4Mys4c4NPek7YbPihI53LlASZcSelt6tFuHA9B pyg69cExb+es/DPZCZDOCkKpbed1zStLQE+AwFMt0kSxx75XV/StkFzmlcCv25Rzy9oJ FAtKhgH4fYHvCyMJV98GuTbo+ao/bV9Vf99ilZCaQOPFXjmOtTXVhwqzCCMCBk39WZxu 6GXJlA2Fopy7IK7JjCfjBJ2mr1WnMMBCy5J83X/3pr/PR8+jx4Ht5VbdSXFvoIxBZQeV eofg== 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=0+tPp4r0epTR7FRxXDGMvWkuoAAq3cnwU6+nn+TZFZE=; b=PmXi2t+J7Bc0QHoQTlCOLWzUYMGHDLhMKOTrPQDCOTLRGACaZgDUzKj/OGSYGI+N/q eLt+ysN7CE9suMLP6nZHEa9vhhwGvO7KcjLnGzeCfYnqcy9m6T6fbtWcjk+GePcxZtJW 6AMs8sc0ZbKQJiPFjmmg99fQqwo8fENWB8AzrcIyetGs25I6K2VR8iAUIJctz1hn0nU3 oQvbvzStdMTPR61AfI/K9EOXC/PaoFTauVdaaz7vYqPkIgVSq3K7FqPi8mqQjsBDXZb2 0eA3RKw3ZKf7ow3Urz0Gx9RR1rPvpoHw8AJk154m1myqPNzBiC8xEypXIsCCxze7eIJ6 0z6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PixLzBu6; 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 i8si86450edc.493.2021.05.12.08.51.01; Wed, 12 May 2021 08:51:26 -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=PixLzBu6; 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 S237392AbhELPuI (ORCPT + 99 others); Wed, 12 May 2021 11:50:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:60086 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234021AbhELPV4 (ORCPT ); Wed, 12 May 2021 11:21:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 88DDC61442; Wed, 12 May 2021 15:08:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620832139; bh=owQbf+PSt5OKVn1E/PhdCSNZLKS5BbRIRVEbkVi3/SM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PixLzBu6Q3eUSHMHxL+TnPwnK9P3r8GWkVPoSMmiLfxSTmTsw35dSQOXVEQBlnrGJ jOOvQ5f62WutFRTykpMA2bkYz6yiapypblvQu4LGhf6pjQKwy5R1LgYhTaMWFjcYM3 xi25k0UTGJrX6VuduIZ8CL96rjm8NGlRFopUTI3g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vinod Koul , Shawn Guo , Bjorn Andersson , Sasha Levin Subject: [PATCH 5.10 158/530] arm64: dts: qcom: sm8150: fix number of pins in gpio-ranges Date: Wed, 12 May 2021 16:44:28 +0200 Message-Id: <20210512144825.037930240@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 de3abdf3d15c6e7f456e2de3f9da78f3a31414cc ] 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: e13c6d144fa0 ("arm64: dts: qcom: sm8150: Add base dts file") Cc: Vinod Koul Signed-off-by: Shawn Guo Link: https://lore.kernel.org/r/20210303033106.549-3-shawn.guo@linaro.org Signed-off-by: Bjorn Andersson Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index f0a872e02686..1aec54590a11 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -748,7 +748,7 @@ <0x0 0x03D00000 0x0 0x300000>; reg-names = "west", "east", "north", "south"; interrupts = ; - gpio-ranges = <&tlmm 0 0 175>; + gpio-ranges = <&tlmm 0 0 176>; gpio-controller; #gpio-cells = <2>; interrupt-controller; -- 2.30.2