From patchwork Wed May 12 14:44:27 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: 435559 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4935697jao; Wed, 12 May 2021 08:31:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyCbw8FZNW3E0me1JAa8xTn8jFnzCDNePJ3KpwDmkKRoPtL8hMPDAfDR+o8ydFNVaCo4QY X-Received: by 2002:a2e:9dc3:: with SMTP id x3mr30369154ljj.206.1620833460749; Wed, 12 May 2021 08:31:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620833460; cv=none; d=google.com; s=arc-20160816; b=Xeha/vLKcdaFTd94EC67mw0NzmID4LKqQeyx8YbidN1Pwvc3628aaNB5+a4k4mge3n WoTkKCJphLScbC4YDpTZ6AU9facUfjk4+nPkCw3LwDpTc5WvuCqoeYr8O4g7tu6K+1AM 2sMq1IG5wm6O/6qWESsUjivn16yF302z238PkyZKjkQdk2IBLgCEnZj/DAyQtiX+unKL sJhQIpnHpiT8fEzsyhFOXAFQTfanv6jLl+y+p1KLSlP6ZifrMBASY1a+To0pz+wlzyle Hm6v5+btyzzaNP7p0bfK1UckJElhIEo3UPxuy3pxgUULqZcanYh4NxBP+kyGs/EwjfIU hnag== 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=LPgRTckyKsOK6CnET/sOvpCg33YeDE+Icai22N7CKUc=; b=zMQUi44r2WU/qE//0W++9849bPHrHGRZ91OkQQ2gqNW6e8APjmbK+Qa2yor/V0VbLa MT2+suCPmjWG6vCp4SS1ktnaDp6Qg50+vnwpT5EquU3lfgDNI1XUxF59zua3JGpcCrve MXNQQjFXNHTWLdFPsMlz46RXQI9xbvBjTxEE+EgACNCUFvDhgeYDqZONuudhs5vJmBvj LE99QOEq9qDcegqQS2mALs72IztiFIDf7jBHRncMvb5eyxF6y5JOXgkYsFX62VrrBal6 3A0hDLGNysU3k9EneC4/FfZOZUcjV3LmnhlArk7aWgGFViaflcXTLuzbivLCynhJnPaY pD2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lUkZPGe4; 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.31.00; Wed, 12 May 2021 08:31:00 -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=lUkZPGe4; 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 S231795AbhELP2t (ORCPT + 12 others); Wed, 12 May 2021 11:28:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:59890 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233894AbhELPVp (ORCPT ); Wed, 12 May 2021 11:21:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1B1A961462; Wed, 12 May 2021 15:08:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620832136; bh=zRPrOU9WSvHbwkuoPrVWOKzV9Ybny2HbBMfRJlkdlow=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lUkZPGe4cVLEUzLKsM7JDT+pfOMKSYcQN8W3PGrOMWAnOApIppmQRIi1GBRNRYuHv rHU6xHcnOvwdq5IlhwCCdxsvdvqvRajf62Hxhj3M/T5nvjj3GisEwbKZRvV1JeQ3im SUknr3IlVrAINy3pj08DWjbTXyyTMTeP3459SE+M= 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.10 157/530] arm64: dts: qcom: sdm845: fix number of pins in gpio-ranges Date: Wed, 12 May 2021 16:44:27 +0200 Message-Id: <20210512144825.005356808@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 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 f97f354af86f..ea6e3a11e641 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -2192,7 +2192,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 {