From patchwork Wed May 12 14:44:04 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: 435638 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp5107444jao; Wed, 12 May 2021 12:10:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy47PPL3WU8TKZLu31DJVIxDnWMTyQpcAfRAd+YV0hSXoECBGWsgeRtcfRCfnmYQNi/cnTj X-Received: by 2002:a92:cda5:: with SMTP id g5mr179946ild.245.1620846621364; Wed, 12 May 2021 12:10:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620846621; cv=none; d=google.com; s=arc-20160816; b=H2/q6WSlV2N3gT5PQIFUiq7yaOsqdC1Op32jEGTKBjTVnd8AmCqqse7sSRz3VwuBOY Iku9mRYkUG5YjvUXvTzg8BWBEDF8CzKnPZWVnEvg+GSCIJ+JM6Q6e76ARl3CTt5NwZ8h zr6sRgr1sO+PWEylHUD0Qx2LGkyZwdmmMFdilD/cXfapq8xStLitnkHF6t/7jjiRUtuG eKZUrgFSTunbex7b0i+TULXmOZ49K/0jBQ/KO/86PgjX4H6Ht0o2gVkLCpvII+8ayPcW paSjIb/uOTjLce56ZVq/xdv+UwyKZ0we+ODaUbtWG42ywQPRLk2Kt53Lk7zJ43qIQIEw HSbA== 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=tnTEhL3CmCtoQ9nxTy4+9H6SbgvYJ3tEDcJ8LcMbBAQ=; b=vHgmsNyBxDNYHpprDIMkYV86QLT2tzh6CBJ38T7lGjaBJsiym8OeV3i9l7cweezevS s1ByRGN1pDaux9qsgmLPZnbbQxCVX/4w8O+QO0Qxr2alCz4rNpRBUFKr9FMzBD3d756Z c0FfK0i39jxsv8ciy+4QQtKAKkcxqweXVxMxyH0tW0L3RjA4o6JzYU3EXMC1tsU3NY+m bXbfnM0OuNYh7uE+i6/kpm40ZHq84cFZqJ9beIUK7n+va7ZoTmJfJ4Z8KF86MJh7wGu/ 0jWjwIT840vYzx26Yzw7yVNjry4bzyGk9sRjE7If6JHDXm96JIMo1HGkzgG1VZlPoKkv MpnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FcYmi1Xs; 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.21; Wed, 12 May 2021 12:10:21 -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=FcYmi1Xs; 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 S240897AbhELQjZ (ORCPT + 12 others); Wed, 12 May 2021 12:39:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:46720 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241946AbhELQbS (ORCPT ); Wed, 12 May 2021 12:31:18 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 443B661941; Wed, 12 May 2021 15:57:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620835072; bh=zxib7Z5MD4Y2dw3vCKUR5dCQZ36ww3M2Hj+DWT0jGY4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FcYmi1Xs+ixC0w72SXk/hycLJUDy/tY8p2hb8wNejGRyiBeSlcaIk1AQhfCHWVemy CrsUKQObrdiLz6komWU4jQW+ImMhKMycWuyw5P4G1YG7QDwMML+Ax49u6ITl/9srdk ARJM7jkXAkONdAbuTKMecrv7Xm1cPnT/twoAzfLA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bjorn Andersson , Shawn Guo , Sasha Levin Subject: [PATCH 5.12 198/677] arm64: dts: qcom: sm8250: fix number of pins in gpio-ranges Date: Wed, 12 May 2021 16:44:04 +0200 Message-Id: <20210512144843.834752614@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 e526cb03e2aed42866a0919485a3d8ac130972cf ] 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: 16951b490b20 ("arm64: dts: qcom: sm8250: Add TLMM pinctrl node") Cc: Bjorn Andersson Signed-off-by: Shawn Guo Link: https://lore.kernel.org/r/20210303033106.549-4-shawn.guo@linaro.org Signed-off-by: Bjorn Andersson Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.30.2 diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 3232ac6253bb..c30872c94686 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -2689,7 +2689,7 @@ #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; - gpio-ranges = <&tlmm 0 0 180>; + gpio-ranges = <&tlmm 0 0 181>; wakeup-parent = <&pdc>; pri_mi2s_active: pri-mi2s-active {