From patchwork Wed May 12 14:44:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 435594 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp5000243jao; Wed, 12 May 2021 09:45:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFhNfYgqginhSWTJ5NLdip1o2KLC2GPiGatEuauRaFd7bjYgF+eTFNa8FNzC+Qnbz2JiJ9 X-Received: by 2002:a92:6902:: with SMTP id e2mr32543494ilc.172.1620837941616; Wed, 12 May 2021 09:45:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620837941; cv=none; d=google.com; s=arc-20160816; b=jt/zAowW+bjHJl1XqAUHFAkKefawW/dIIu5QsST2DXGQzsMCmBdIkuPoyzNHUuwjLW T7H5nHcZ5K1whTzkDf/ZVxc4f0s0VR7FiXMDXOdZlp5e4pNMypVQ/InkdbjC8izeet12 F2r43T3H2oNQUqBhFmhin/uqjEmJpXC/XGXDlSFcVJCAWLwQTKWhNK4uxmgCw0YtyYcz Sk7LxjGabpopO3GlHuX9n+zEMGfGEDN35XF1CpUvO+UlZTmdT8DQMDP3B2Pf/7aNguAD tu9PuSc2PdC3ZpXiVjlBQoBsehKckag2vwayQY1uw6Zu5K065HL3kZ6AEMx7jPEu61IE W0Wg== 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=pmYa8GA7aZ3Digg24ga7GO0+Pam/fJ+Zy+CqeT4H66o=; b=Bc/fwgkuuexhR+laavfj8kS9F4lqhrds/ZmSkjSaqUhrg92RzWX9qihc4x1D/fSkwk hkkJFf6x7HRWd4JFfPw3XfRLRONtj2sST0pfmv59Ct158z96Qzhr1SG/HX/DQb5MJcip mEKvpUAn2QALcd957Ufp4sc9oJGtAiqFZsprPRhTzDYaIKosZiOfw8oHRkZVJI+TI69/ WELVpfdww79zHadM4oiY4evaX+ZpuTF/2dEg3QTfMCF5dikvoguj745SP6L3Io4Y9U6W lWp/tQE+LqNyF2hsHKmktxpqz/i2fDZtcRk6ZHAKypR9xLEJXfoqK8sy9Xlrk9Dua39M FEHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=brnroGwa; 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.09.45.41; Wed, 12 May 2021 09:45:41 -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=brnroGwa; 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 S238386AbhELQE1 (ORCPT + 12 others); Wed, 12 May 2021 12:04:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:44390 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236691AbhELQAF (ORCPT ); Wed, 12 May 2021 12:00:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 04F4C61CCF; Wed, 12 May 2021 15:32:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620833557; bh=cykY/jkZwgLZt3syheemHlimjnkmbDoVFVb74p7uBsE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=brnroGwaFsIC9n+F00i+AzpMWF27r5ZvXdrCYdNdr6QQ695Oqv7SSwbDSEDDANSv/ +EWDmOwQqZuWC5fKZMn4WMpmOi6/MHquyE7mqc2H20eTbstWYlLdfl/kemhvfhwcBO ZJo+RRgBm6A88L1tlNdWXH5S5f2BwbPZ8U9dY/+I= 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.11 180/601] arm64: dts: qcom: sm8150: fix number of pins in gpio-ranges Date: Wed, 12 May 2021 16:44:17 +0200 Message-Id: <20210512144833.765383413@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144827.811958675@linuxfoundation.org> References: <20210512144827.811958675@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 5270bda7418f..ad1931a07981 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -757,7 +757,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;