Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp77674pxb; Sun, 15 Aug 2021 23:52:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJym16lhyHhM1M74V3YtK0ZfZZH7BSZLPrJJ1CxrXWG6QvLaV9c0ZoM3aqTBA2hQ77B9jaO0 X-Received: by 2002:a05:6638:3b0:: with SMTP id z16mr13300166jap.139.1629096726167; Sun, 15 Aug 2021 23:52:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629096726; cv=none; d=google.com; s=arc-20160816; b=GUD6whEfXwuVLQmGCHVP8EFRkJDjI15im51LMql2TVE1JNGtc+fbR0qlkoahZL/Q9N TBn0DrIwrHTt8P8u6BtG0Agoy6oYl4R2yCZLHRauRfZMKOpj2nfAA73lTMM6ZyfsWbdg ZoWwNQPVrf1EeiVBJlPF7hGR+Yq6q887h0bWU+zf+iwDNog7M/vCsC3RAmUi2igaOjHl 2yNIi19/m2gCB2rgS8NwB2IYExsKe3H1BvbMNYs7y5HBtfDKOIHMdoyAXE1jWyK2/bWd RRJy15ggtlnr7kyPwizZtUKPtBTBcZWSg6lwCUyVXDUPyjmcnttkBsfYLWY03ji9kJkA EAwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=gdILqRmVTD/TFVQVBfNPgHl11ZlKVgr1wHcPFQbbszM=; b=ELzVFL/ouxyrzn/qANM4HVaC1H1TJOXxmmhjzPLZ1/bLKbsU4GZYMxVnleqPJoPTEb PIu154212zq/RzSAjE+KKC9r3pjqnx34Zl6O7EAkhAC/yfcEcoa/OYBC7fmk1cllfK4A GeX/iS6yMH5hX4JsgaGJc4jLdk0U5vM8q3Mhk+uBghhU0HkuHOukuyT9hAyeMh2i/ZvZ X1lZmg4wlSP6HyA96lJzVucVd+YK42HAhqOXT8BrtnUxjdZrVHAQCOopBzbQ9Uivn2MB ZdLTWDCEeTYaKjoX3tW+T9VneMMWtgNAqy4k7vYormvNvOMSYzBM3hgg3AvmPHeUjCYL Hdbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=Ag7pMNo9; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y17si15140083iov.62.2021.08.15.23.51.55; Sun, 15 Aug 2021 23:52:06 -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=@mg.codeaurora.org header.s=smtp header.b=Ag7pMNo9; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233576AbhHPGvc (ORCPT + 99 others); Mon, 16 Aug 2021 02:51:32 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:36788 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233571AbhHPGvb (ORCPT ); Mon, 16 Aug 2021 02:51:31 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1629096660; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=gdILqRmVTD/TFVQVBfNPgHl11ZlKVgr1wHcPFQbbszM=; b=Ag7pMNo9NM4YEz/piukAZgstpiYn19UHawj4Se3F3q6DPcRHz7WnXE8Ptkj4I6sCoa/Cq41q 6c+tNgRzxUmmZwEfQmuLCPrznhPM8J3bfZkNAGbodZeEKcgNxffThPPaz7hLtLbCp9gTFacS NjAXusbjtjiLA/40kVcSckbCd48= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n03.prod.us-west-2.postgun.com with SMTP id 611a0abef746c298d91898e3 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 16 Aug 2021 06:50:38 GMT Sender: skakit=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 2391BC43617; Mon, 16 Aug 2021 06:50:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: skakit) by smtp.codeaurora.org (Postfix) with ESMTPSA id 69BFCC4360C; Mon, 16 Aug 2021 06:50:37 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 16 Aug 2021 12:20:37 +0530 From: skakit@codeaurora.org To: Linus Walleij Cc: Rob Herring , Andy Gross , Bjorn Andersson , David Collins , Kiran Gunda , "open list:GPIO SUBSYSTEM" , linux-kernel , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , MSM Subject: Re: [PATCH 1/2] pinctrl: qcom: spmi-gpio: correct parent irqspec translation In-Reply-To: References: <1628830531-14648-1-git-send-email-skakit@codeaurora.org> <1628830531-14648-2-git-send-email-skakit@codeaurora.org> Message-ID: <4af8171aefd6f0387438225666ec1ccc@codeaurora.org> X-Sender: skakit@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > > 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. > Yours, > Linus Walleij