From patchwork Wed May 12 14:44:28 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: 435561 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4937362jao; Wed, 12 May 2021 08:32:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmHGNFGcyzM9bR/dV+RPpfm03fSrikm20i6tbKSSB4QYypRiTUafa8wyHoVkGd6WkURZE3 X-Received: by 2002:a2e:b2d1:: with SMTP id 17mr26988701ljz.318.1620833566062; Wed, 12 May 2021 08:32:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620833566; cv=none; d=google.com; s=arc-20160816; b=Pis1QAErpoDye1kwvq1gYX1rtIi7SJjBVtQejVInCrxakEeqA612h6sOZ6cS4Qobeh WCVKYZ9pG8wemeNIaHy8BW2S7ZybXzABTb+M50pxaxWiSvjsHJBV3lsaO/K4DEPUnhst iqGR45/iP1UvNs93sCw2Yyb4vNfINkXFvoMaTtaO37+17bmu/LgpkQAp55KT/1sbhRQO 90YdBzohQWH/kyMcT+EOsozUllN8PutEsbSxnJml7R0Mba0gPDzJiFwJyYmtTGsnzAKb ++Q5gxjJHNB4EccrVsBTm3EP9ES0oN7FQuFndfuLrVfeTwkryMM6NQ6ibEkaTFoYZoZR X2qw== 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=pRc8x8o3Yb/QBYJHCy7VfbGz+fbw2+uGXUHaEKWN+vKmo0iRZPTWLDGkQ8R6fAHgJX v01sPs+ad0sNBAWd1V1nk8h+T+dY6m1d/abrWJw5jCMJVxg+mbvhdM4ijqhVjWG/hSJN L7fpMytqcUgKj3elqA+MhPjf501p5+iwVvWqsFc3vh3Tye2oieLDyKi9fnHQgcgyhN42 PQLOqTwtnXHnndVVnpkudiYVkuf8l4crUxmpK9eJmtB1jKYRN7WNC4JbTvfm7JjSq+PH BEMjv/yHvI5uPbg+g1o0f31D02ipStaJLzTV3uPRJb03Eg4p0bWql1rRoraN8qzyNn7M woBQ== 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 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 m20si100438lji.284.2021.05.12.08.32.45; Wed, 12 May 2021 08:32:46 -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=PixLzBu6; 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 S234099AbhELP3V (ORCPT + 12 others); Wed, 12 May 2021 11:29:21 -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 Precedence: bulk List-ID: X-Mailing-List: stable@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(-) -- 2.30.2 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;