From patchwork Wed May 12 14:44:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 435639 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp5107462jao; Wed, 12 May 2021 12:10:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyI3DNEG9G7ruSVGUXxZOhWoU9vjVHZk6iUeE0Hi65KX1B49vODeqQmyfwbNZI4Hz29E37Y X-Received: by 2002:a05:6638:3814:: with SMTP id i20mr31267744jav.85.1620846623121; Wed, 12 May 2021 12:10:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620846623; cv=none; d=google.com; s=arc-20160816; b=V6WIs+placJiQaZ0Jc1dVI+MVviVHCJd3O57oQq1sIi5noVCUHm4kpMYSbMB3/4ViW MjD+44HFc0H7kYWq/ipkBtjh6iuku8QItviKPB9Qa9eLWyHZKbiriHSCQgtCUyxu86YG tJkk6K6Wh6jMm3kvSPtPaaelgkhGEDXoMgmeAojBw4HZ0sRWOfAI3PWE2RT4+CxdzLyr wSmV52dQraOTgjBgyMMfB44FpO7zBZHj2hC2ciKYZ9U3K5sH8wI5cNMomrsO9IvIy+XR sTsvT8PaPyDsSGe0BmmkvAuzUJtK+FKuXIAAbf1lugqdfZXnUPF73vLGQGAnMZ2q+2Wz Pa3A== 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=Isr89UKMgNBcPmaGhFSKNCHjEkp93weTt/ldiXyDvsE=; b=B8nJfL8bK13cUUl16K2cqjb240m86hjrHnV5fhRWkIehLIX5bONp6fSE9M/XDln8IF BajiSAYfEQRDYud6VIviAkw0n495JtqO535XoOnm/QGJtQ5oI5UgcuUpOJJtfn11MvF6 hCs+Hd0MRiPT0vDgOvwX5cY6AzxtoqTy0a+mInrrGrgcfwteyFoTC8UOKjqjcu/AVFJ6 9REt9Uc52azrhlD9rYno88K1OhzCas2X2ax+BPvfClgQCnltGMWixyGAyiw8Ed/kq24w +SLgJSJnTkuA3IHRAQUr+z7lFij3eOsOMkh2TxjzJmHzWtS0koBtB3oHIVAVNn57r5B9 SeOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FB18lF5R; 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.22; Wed, 12 May 2021 12:10:23 -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=FB18lF5R; 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 S241003AbhELQj2 (ORCPT + 12 others); Wed, 12 May 2021 12:39:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:49430 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241952AbhELQbS (ORCPT ); Wed, 12 May 2021 12:31:18 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AAEBB61945; Wed, 12 May 2021 15:57:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620835075; bh=4Ws+Sp41Yeo9XOnxY8Ty3+cUxWw0z2dbbXHuRkpDOK4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FB18lF5Rw/KRaGLJ4S7Z+qP/UEC6Ii18s8JxQeiCKOrrKk2Y82VaR3m0huzIy+Cb8 eK5CWLwH4eUT1vV+C7/yk6UZsPcAXgX54b/N4/79EPX9gZJOIz1jo4HkoZL2fR/r6M ByatyeJcGbRyRE8Ibwb05xqS+44IF2eVB+wqjV18= 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.12 199/677] arm64: dts: qcom: sm8350: fix number of pins in gpio-ranges Date: Wed, 12 May 2021 16:44:05 +0200 Message-Id: <20210512144843.867229277@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 790158579c8e663081e7d708d57e8ac6d69dca4e ] 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: b7e8f433a673 ("arm64: dts: qcom: Add basic devicetree support for SM8350 SoC") Cc: Vinod Koul Signed-off-by: Shawn Guo Link: https://lore.kernel.org/r/20210303033106.549-5-shawn.guo@linaro.org Signed-off-by: Bjorn Andersson Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.30.2 diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index e8bf3f95c674..e2fca420e518 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -382,7 +382,7 @@ #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; - gpio-ranges = <&tlmm 0 0 203>; + gpio-ranges = <&tlmm 0 0 204>; qup_uart3_default_state: qup-uart3-default-state { rx {