Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp650850pxb; Mon, 16 Aug 2021 14:09:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygYgxOFY1u4h6mzOY/TPZ8d5+U/VGU3Kx8QHVI9CJ2SvclRw8HgFVoutEAg5Nb08nYbKfU X-Received: by 2002:a02:9f16:: with SMTP id z22mr572147jal.18.1629148182860; Mon, 16 Aug 2021 14:09:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629148182; cv=none; d=google.com; s=arc-20160816; b=oOmBgfphjx6bmI9uKnGdEbkeaQbwlNrm3uyNSAI3ZlhVAGuRMzJgZpP1vmXm1b/ir5 Tge4jcO2odEM1sUxXHX+HDgNrMIIjvrRoTZ1GNXagLaDYic2dDmicOz0GmBG1hzOClxg r8HzyhLettgreDyrTZyVK19ExN5v8MaInk1p2Ym0R4Cgsnre+WC8wjHBiIncb+uKbHsf twex27MLA4CR8QwGZJQyMq5JUJPHsnrgIFAgsMtfR7wANfwgEqbs2TpgmAAdQuSPjbpj z/vOvUINgdYrrz+6ph/8yo7qkYeqJWdDHm910VKIbAyfI7yZPnm4A9EM9w1xWXWv0TcG AHiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:user-agent:from :references:in-reply-to:mime-version:dkim-signature; bh=DhhEi9REryF7Euqq+T5kr4qdAnwWtXdUixXZ+suk4Bc=; b=sTnUEUk70uOcAcHoGAxZi83YK2pKMBiMjoeCX7q1UQvqr3wufL3f8L0Np94bmAja1l 0cw5J0+ztKpPyc5Zixmi/DatZrHdLUCym/V29SE417SiLkJ7GvxSErkwNI3mqaAtzK5i KxZlm9ENy1ZAlhCKqo1FBc7XZG4Qw6NAE9H04CukAeHDvRcMGl+AH9QWNZIPXGTyBEXy Y2iO2xKntAHrtZxzhfNc/R2FjAJMCljnuZe3wgPjSong59J1H4PZa0IcRVM8jDX5b061 P/E9yb53XsNb5vICN4OBLVAFIcHSPvMfxrWmo9ew2LmgmN9z2vd8Mqd2XgxDzcic1g7F EBnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="ZFFABO/z"; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k8si10493jad.90.2021.08.16.14.09.31; Mon, 16 Aug 2021 14:09:42 -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=@chromium.org header.s=google header.b="ZFFABO/z"; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231874AbhHPVIp (ORCPT + 99 others); Mon, 16 Aug 2021 17:08:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232812AbhHPVIo (ORCPT ); Mon, 16 Aug 2021 17:08:44 -0400 Received: from mail-oo1-xc30.google.com (mail-oo1-xc30.google.com [IPv6:2607:f8b0:4864:20::c30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 749F0C0613CF for ; Mon, 16 Aug 2021 14:08:12 -0700 (PDT) Received: by mail-oo1-xc30.google.com with SMTP id h7-20020a4ab4470000b0290263c143bcb2so5325281ooo.7 for ; Mon, 16 Aug 2021 14:08:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:user-agent:date:message-id :subject:to:cc; bh=DhhEi9REryF7Euqq+T5kr4qdAnwWtXdUixXZ+suk4Bc=; b=ZFFABO/zVDWWQmLLx0RAO6ybYuaWOdMI8nfvqWkZjHWT8a6efPqOopO3FP63sz7FCF euRekIkxlsBrNPkbbInMLWEp5RUGKhseciWZxhfOUiN7ek051Qryieqvixa9QRfxErmP fGQRczUdjxKv75kS7gpw4JjRovjWd6GJIh454= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from :user-agent:date:message-id:subject:to:cc; bh=DhhEi9REryF7Euqq+T5kr4qdAnwWtXdUixXZ+suk4Bc=; b=YzjJ2I6UqeS0HLfQMApNi1Lg97HmCvsrR3q1kEzBvb1F2g0/UGscVrEVc1CGJ0Nk7e /LS2VswUvYXkkj6zZE2gQeVJKlOVu6OW4i+kgYMClCng+/C2rkvkbS3H2UULegrebtMr jkXpU7FWszLDVCxY3mp8G3etR5BJDjY2TJ1YHlY0AKKP9JCvwJee0XsAeBuoSFK/V3dE g61CEO7Ou91vXT2wxk+Fm6WT6cQf2unK2fYiRB2LtsmcA79iJTb/mR/gCbW/DKKcsXyr iwAcQUCn4maqPWxZNoikbNfYNNgGa01VklcGG309cYox5jyn3RmfOveI43t0Nji9iw6M d4nQ== X-Gm-Message-State: AOAM531k32qRGQDTxpV1VewVD5BiJW4Wp7X3w507bWZfCkR2GAj/9gcr sYHSKmmAJJgW8U1cApVxVbaZ3FwnlrHLTN1Zq6OMLw== X-Received: by 2002:a4a:3651:: with SMTP id p17mr191016ooe.92.1629148091816; Mon, 16 Aug 2021 14:08:11 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 16 Aug 2021 14:08:11 -0700 MIME-Version: 1.0 In-Reply-To: <4af8171aefd6f0387438225666ec1ccc@codeaurora.org> References: <1628830531-14648-1-git-send-email-skakit@codeaurora.org> <1628830531-14648-2-git-send-email-skakit@codeaurora.org> <4af8171aefd6f0387438225666ec1ccc@codeaurora.org> From: Stephen Boyd User-Agent: alot/0.9.1 Date: Mon, 16 Aug 2021 14:08:11 -0700 Message-ID: Subject: Re: [PATCH 1/2] pinctrl: qcom: spmi-gpio: correct parent irqspec translation To: Linus Walleij , skakit@codeaurora.org Cc: Rob Herring , Andy Gross , Bjorn Andersson , David Collins , Kiran Gunda , linux-gpio@vger.kernel.org, linux-kernel , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting skakit@codeaurora.org (2021-08-15 23:50:37) > Hi Linus, > > On 2021-08-13 14:27, Linus Walleij wrote: > > Hi Satya/David, > > > > nice work on identifying this bug! > > > > On Fri, Aug 13, 2021 at 6:56 AM satya priya > > wrote: > >> > >> From: David Collins > >> > >> pmic_gpio_child_to_parent_hwirq() and > >> gpiochip_populate_parent_fwspec_fourcell() translate a pinctrl- > >> spmi-gpio irqspec to an SPMI controller irqspec. When they do > >> this, they use a fixed SPMI slave ID of 0 and a fixed GPIO > >> peripheral offset of 0xC0 (corresponding to SPMI address 0xC000). > >> This translation results in an incorrect irqspec for secondary > >> PMICs that don't have a slave ID of 0 as well as for PMIC chips > >> which have GPIO peripherals located at a base address other than > >> 0xC000. > >> > >> Correct this issue by passing the slave ID of the pinctrl-spmi- > >> gpio device's parent in the SPMI controller irqspec and by > >> calculating the peripheral ID base from the device tree 'reg' > >> property of the pinctrl-spmi-gpio device. > >> > >> Signed-off-by: David Collins > >> Signed-off-by: satya priya Can you please add an appropriate Fixes tag? > > > > Is this a regression or is it fine if I just apply it for v5.15? > > I was thinking v5.15 since it isn't yet used in device trees. > > > > Without this fix, [2/2] Vol+ support is failing. If possible please > merge it on current branch. > Are there any boards supported upstream that have a gpio block that isn't at 0xc000?