Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp604942pxb; Fri, 13 Aug 2021 02:09:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvPwxnplyNai36LTFA/Y2DHhNLHGineEhfUGi25Jx0oiwNxgjdTiO0aJaiCMwnY/Uo0jhu X-Received: by 2002:a05:6402:5161:: with SMTP id d1mr1860363ede.50.1628845789915; Fri, 13 Aug 2021 02:09:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628845789; cv=none; d=google.com; s=arc-20160816; b=czptVLd5cI/bqv8cl1hHxE+PvlIGleALRSTHEBrNC7OdlLNrJlbxDDIKev3TNSMJdU jiTXgCh1gep5wnF/S+3UmQsKgK+HvmcqvY8XpoLcmPo+Bn8sL+LYBWrfmwWKUfP3s57u eRrGMM3niB5Hw5xythZbDWUY2RZBUDKfu3YGmIE23YDXvk1Ti6NvSEW7Bg+ZihefuWUp 8fyPQva1RpnMOpzDpwBKwky6IC/Gx4Ul3n6c2/ZgXllKmUwTPfik9tkZMncwF8f2RR47 PDKRvp9kJDxEbBtk1Ur9mU5WZc8wFf5x4UuPH7r4BZxxDV+7FSqbKoNSTWMr0pIKx3ms POPA== 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:from:in-reply-to :references:mime-version:dkim-signature; bh=4Go/2+Nr8/IPd0gMcjz2kJs/syLb1QNBBenHOoL/xe0=; b=E0dQ8OcY6MPds7pRdKikrkzFOHFc+qN+Ay4XlU6JvuJ6QQ6969aKfmPDmGhIpYc/wC qLrdhMWHSDoY8YD3NHkTxoi7of3IPdzFOPpQkAVl+QrK1ussGWvCgYqtxMCzhop2vtWw pNVqrQryV/VUIO1pd5CTtuwwteM5OO2vc6k2l01Xl4+EzgvyoQAecUDYj1B3vsteCBvT HgtYi9zez+ldMwOLzgoN3vfR191KuDsMGqIutGWhYK2cvUaZQkQS1JVdAkH/DwNpv2Zh uuT4GgUGEJ1GnNF8084v1a86gULuW+d+bOE+uo6BHeYpGC09H+TkYR11mXW4COvPl1Qg tYyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Az3XzF1K; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z26si1364488ejc.486.2021.08.13.02.09.26; Fri, 13 Aug 2021 02:09:49 -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=@linaro.org header.s=google header.b=Az3XzF1K; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239769AbhHMI6f (ORCPT + 99 others); Fri, 13 Aug 2021 04:58:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233713AbhHMI6f (ORCPT ); Fri, 13 Aug 2021 04:58:35 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 910F1C0617AE for ; Fri, 13 Aug 2021 01:58:08 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id h2so14711733lji.6 for ; Fri, 13 Aug 2021 01:58:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4Go/2+Nr8/IPd0gMcjz2kJs/syLb1QNBBenHOoL/xe0=; b=Az3XzF1K+Slxm41YO7BXtPTbH8PCX6lQvvTdftzW4AJ+LI8DRJgXFJkX8x5B0qPk83 MJ9yOeq5iQlm3Mv7HC6cqkVfcJaqsSQmEDgGsOD5EvPza99LRSbI5WJnCBQAdS1Vpac5 XEpCKVR1KLpu6RJJm1mPASkYP+ZBwsGRa0zX6d6C097S1utT3q0Mptb77LjaKIzqgge8 8gJ0EUkbxmCbjZJbpvGRhIrtVB6u2wcfVqZ9EiLgpGv2KKKtXfZTBz2Qp4A2XcjBPp9V 5ukEITiwo6t3HMeAhrpfcpD4XXDkqkv+zzDVkcQZmHOVqRSdCUvu9LxkDp2ldzogvnWy j4Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4Go/2+Nr8/IPd0gMcjz2kJs/syLb1QNBBenHOoL/xe0=; b=CMpmkz+isXyBkf2zs6ao8qMWgDckkVxPyEWvsOAvR/TicysivNYBi2bHYVrhDGmefk cxEb24F4SG1ncAdFjdpw5cgtG6JryPNIwfeLXEttAVtifbW+fo8RFG1w/5OjFQaRtv2n C9zYx91NSO/TRAmSUTHkLdbaT8QJMDFDiXxvr8+kNVZtAeqL8jtLgaR6MAk8lC4IKX8i 4ZZul++TjDgPS27zgZHFbbDB5YwGfcQbVSkCnVgNx7SsOKpwuMuFPjBgc8VcdjxJ8yVm Y5bFpFTnJB0OF6MdL3rLjG/CpIqsRld9tICLH4txgtSg50Av//jQl1ZXzkXki3QFQihA e7mA== X-Gm-Message-State: AOAM530HKW8kSkaRHNde2fT+MCvE3jrh7YXGsHP8NQRgz5YtwL01nYAB bBybOs3kw380ygOM695Jm+UzgSK/m7+qdfwTaNi5ag== X-Received: by 2002:a2e:89c1:: with SMTP id c1mr1083515ljk.273.1628845086850; Fri, 13 Aug 2021 01:58:06 -0700 (PDT) MIME-Version: 1.0 References: <1628830531-14648-1-git-send-email-skakit@codeaurora.org> <1628830531-14648-2-git-send-email-skakit@codeaurora.org> In-Reply-To: <1628830531-14648-2-git-send-email-skakit@codeaurora.org> From: Linus Walleij Date: Fri, 13 Aug 2021 10:57:55 +0200 Message-ID: Subject: Re: [PATCH 1/2] pinctrl: qcom: spmi-gpio: correct parent irqspec translation To: satya priya 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Yours, Linus Walleij