From patchwork Wed May 12 14:44:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 435593 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp5000075jao; Wed, 12 May 2021 09:45:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyM784g+7jLxhh9kQPIzpuVvCFW2ahp9PJRnh3G9FE/USXszg5TGPVA8/vFSRRiidOZJQgh X-Received: by 2002:a05:6e02:1d9e:: with SMTP id h30mr30782190ila.214.1620837927251; Wed, 12 May 2021 09:45:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620837927; cv=none; d=google.com; s=arc-20160816; b=Vw4OVDAjH5mR+s4E3s2naxSYPcrgmkLqAdh/lA0IorZuF6GBP5mJC0dZ3p0M/dvUmY We8DABTiKh3jAP6cP+4crTb+AKkzcPG5mY3yZ7rVCfJx6WYBGhU93rD6HswynFSHHGdb WKf8fRJOsCwaNb/fPdheV5ZiEbWyyvpyB5rNQYh1aYvnjMqvhShxwEMK9SvJhJ7Khi/N VUPF6/Fe8vwgA+xAtxxaVoqVAxfV8tUcV69N4r+5tOJK4xZKAAG/zdIwbU0/1UxMMYkC k/dRkn4k6Qi+1Kdtfj0XOwhubSxdJJvsVKQaMfOD2OPFi+AZSw/FvUCCFJWB1NkCglni jXpA== 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=Ls4Sx0xsV8J1fcPV+xA1ohU3MU+lhGm25KAMpFI6XSc=; b=0+762u1awk4kjE3MGCU1pk39iIJqIcP2jsIF2iqrvLBwfdnecROPi+xs9vUX0ctkn7 K0P2o8UyNQGJQfg6RXgl28eg715F0FUvvMYBwsZ2kExt25R/D7H6jH8nfCs67P84TH95 n9sd77uz/pwCk7QN6ahhxnGiT3UM0lzXnixce5tID3f5dHJ+RbG+AoARi4f+95OoRqH8 J8Dxp0rHfHmZLj0M5tibFXkR2yvPHs2ifqlR/p9QT8o8LY+P0hSnHbU36x+IhaILy+sr Fl0+Nbn/A6n60Lg5j0OE5APrrRtThj64v8zHwKvHR6fZuqbjrxGTyeUfeqQTwFjBGcBl I7tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GRRul2X3; 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.27; Wed, 12 May 2021 09:45:27 -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=GRRul2X3; 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 S238014AbhELQEW (ORCPT + 12 others); Wed, 12 May 2021 12:04:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:47554 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235271AbhELP7Y (ORCPT ); Wed, 12 May 2021 11:59:24 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3AA2461976; Wed, 12 May 2021 15:32:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620833530; bh=0dr4rLaJwk1R5ywnRihyhQo06S7LErNLMIY3HUoxmF8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GRRul2X3+Y3KWIyQHy4Kc3yvU3BEbThnsqRRc44UWDQkIOSKsgabB/H9pHuWr7SRt fvcNeWGkDYe2Fmwp0AU33Wj3tF1VuP7iBsbDN9xou5NPDe9OrgoqwzRwxscF+FH5l8 VTIdfFNK/m4v3x6AYf0LIkR/B+mN6Qg3buVhUc9I= 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.11 179/601] arm64: dts: qcom: sdm845: fix number of pins in gpio-ranges Date: Wed, 12 May 2021 16:44:16 +0200 Message-Id: <20210512144833.735261660@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 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 bcf888381f14..efefffaecc6c 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -2384,7 +2384,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 {