From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 36739C4320E for ; Mon, 16 Aug 2021 21:08:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1D0CB60F39 for ; Mon, 16 Aug 2021 21:08:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231938AbhHPVIp (ORCPT ); Mon, 16 Aug 2021 17:08:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233045AbhHPVIo (ORCPT ); Mon, 16 Aug 2021 17:08:44 -0400 Received: from mail-oo1-xc34.google.com (mail-oo1-xc34.google.com [IPv6:2607:f8b0:4864:20::c34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D68EC061796 for ; Mon, 16 Aug 2021 14:08:12 -0700 (PDT) Received: by mail-oo1-xc34.google.com with SMTP id w2-20020a4a9e420000b02902859adadf0fso5327642ook.1 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=gBnXmno2Bi04LQUqrSh6h5XjJGEice300SBQKYZyAzdeb8uXBRUnq1oJC/sCWJJlP8 dRztDLqnkccc8chuHpmyvYooo3boliwkokFdfkVPpBJS0vfTNYqV7CxqNdUXo2sBzE2A TtLvJPlvdkovsozlGChfnDYMwkoucuQmovkFPU0dK7yz+0/tOJkW1TMUYDat/ht2iWVi Bot5uaOfjl5UgdmzFtOp3scmdFFeEZ6Laz26AW4Ut1kIb73oTbmN0gdGH76CwJNnN9zC SFm5O2/JSs+S7DcSA9UOC0UabbISqnthRC2gvouvbO9sPyYIpLg2DMGN4KAj1iD5QD56 dUWw== X-Gm-Message-State: AOAM5323qNS+6/qFN0J4krAR3IIlVzEHX43MEQuGEhOYueaS5gIxkUdp 2pLbRrClq1H0EKfjeaNYgdd8dXBAEqMG0u8iws/Gjg== X-Google-Smtp-Source: ABdhPJwkW0aWkQ3eA/CgUBtD3vfjlQxS+WPjQ68YkWRc3r79J/uwSbmFY0qfQ58wr1VReoLjN/jo6yEDlFehMe1Pnb0= 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: devicetree@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?