Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4592298pxj; Wed, 12 May 2021 08:51:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxa9nrBW9CtJYEw2TQEWCM/1vv/UIefyLFSCoLKSakdwb1gDVppVLt9dnUMXwK/krZe73QL X-Received: by 2002:a05:6402:2714:: with SMTP id y20mr43844282edd.348.1620834685924; Wed, 12 May 2021 08:51:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620834685; cv=none; d=google.com; s=arc-20160816; b=H4ecx93IPVUhY8uPu0zJbsFmJLQq894M5tmYVy+EpUjgsaEpG6HpR/zV/YxaIZFyq3 o9qzM3LEY4XTw6UQe2uLsv9Qdi5rupMv4efYrINxBYWCFADXkD37Vih6z+xQuzgw9rY3 lXtXA1mIYIiWMAn7fuh6p/yFDg3U1nQBisqhtJI9sLJctMNJ0g/lfbsGHqZNNeR6fG7B v8iKoBiYGCLbDOiVKeOfqZXgbBOfROjlIMdCWYZBO0w5aUgNFX19MPGQfBWul59nz6Qx 5j+Bu9y1M67qDGDl+ugihdS0yIaHa7tpyvBwu6M1Vxsg+AciSA4c4Mv7FMMIfJwtpCqc l2UQ== 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=EdkRjhRlhoLgio4MaVLc8d2rclVy1p81a6D/eeqqwlTxAHQNDK3eFzat4MWLnIJWi+ jxXqEDo6cWhyBjRiyOXUDFUa0d+HmPXhvdm68ck2P0Rhjj/klfmBBwoqteCP+Csg+221 m3/twytw55PHz4WgK8O8Ktm50Qc9XgEufzCTD0UIPgOPPARh0YrxWirF4328/GnpPmor +PRCYTfgc4Oqs9bPPHD4p0HDgYUrP1lHP/eHgzOuHE8KbRo3iLYLXOZURNQpbd6IHay7 W4zQ8JKdttKr0Y26jCKW9X4uc2hGv9H5Tm6oPpDmUWg0Dhe99cur3QHDtj/XO5ba3wH0 vrwQ== 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 linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 dc15si334228ejb.162.2021.05.12.08.51.01; Wed, 12 May 2021 08:51:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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 linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S237299AbhELPto (ORCPT + 99 others); Wed, 12 May 2021 11:49:44 -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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) 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 { -- 2.30.2