From patchwork Wed May 12 14:44:29 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: 435560 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp4937306jao; Wed, 12 May 2021 08:32:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyfVFxEnRdUZIZSoflDIXLK6yyKVF4m9PZSi1NzHFjXKLpF8C/ui7syFxADy+wkJePAEuF X-Received: by 2002:a19:c304:: with SMTP id t4mr25128937lff.86.1620833562586; Wed, 12 May 2021 08:32:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620833562; cv=none; d=google.com; s=arc-20160816; b=O46b9iFETkxDY8ffBOCLyA4GG/56V1zBkcEl502NsCBDTyAL7CU3OwKahSECybCnK1 ldGq6t7xFBgzT1laS8a2xzh6G5nHZPr+6gCo0RrhRCjvadufr22IRquLESlpjWO/wuBy bnppDzCTybKlQtBTxAuIzOHiseUik0WXd4d1Bt5rLGPVfmNH9pdHAzd8aWn+3JZTYcTa bsvnMxICJO3do73/95alpOvz2spX/5MCDyToVR/ASLRIZsu2un1QzmANQhbxjAY7wqYb xRgA2/690CxqN1TJuCfZz74d8lktkZ2SesNtFL5LsvznZLTClqesxFeXkmkC+5yxd7vq j/jg== 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=K9GjmjYPNnXgzTtRgP8vGyN6YhH2EP94dxUpJqSc9m0=; b=o3huoPoXPQMn64Qn19ppOUYUl1a/swOv/h+M4U9agmEEdO+eZe8o1q616sdmG7lBaE jcL5MhxxjXfbMooNGth+QZx/+37Q5tyPPc4Hgc2xIRdSovGt5zJsXwmMw6xQuHo/lQa5 o6wg6nq6/O4kguQ8UcbMlxBUQbWjZ1uTd4hQKdE6Bpz4G01/z3VVCKwG/6FnMvYjPGiq 6naHW73e6+mjiyqpQiHDi2SVSpqOTIFv0UlkpbG9+apL6bjmRsPoAg9y3EMqXv6WdxSH DpTtfHsSCTnpCzYYQo4DzyApLgImQ5Lkra/SfBMge9BfmZrUeyjNAYFVzYOfxAkrgwUb thJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yIM8T6Qi; 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.32.42; Wed, 12 May 2021 08:32:42 -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=yIM8T6Qi; 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 S233943AbhELP3Q (ORCPT + 12 others); Wed, 12 May 2021 11:29:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:60306 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232240AbhELPWJ (ORCPT ); Wed, 12 May 2021 11:22:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0763C619A4; Wed, 12 May 2021 15:09:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620832141; bh=vo/QXbUbpdeYITQOovbpNTp5bo/YBKtvj1F9zxwy5lk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yIM8T6Qi6cIe0lzWw+znNtKCM3338baTyLSdT07RCSltQcIRLKn9XgDMeP+lqc58N YieGr5XltVkqRJlAfHA2obia1CB6b4kCCSjq4XrBP11+n928NQI8Aab87Q/qyb2rQs sLGO6yuAeZLLNCT68k5CsCGFsXdhOmvQgr5a8TnY= 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.10 159/530] arm64: dts: qcom: sm8250: fix number of pins in gpio-ranges Date: Wed, 12 May 2021 16:44:29 +0200 Message-Id: <20210512144825.069484481@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 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 f96c8a4fc3cc..d4547a192748 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -1555,7 +1555,7 @@ #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; - gpio-ranges = <&tlmm 0 0 180>; + gpio-ranges = <&tlmm 0 0 181>; wakeup-parent = <&pdc>; qup_i2c0_default: qup-i2c0-default {