Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2113002pxb; Fri, 17 Sep 2021 02:27:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIJNb8qsmeZtQm0QoQ15slTHApQ5RuOk1LDHXBWZxeLDj+0aAEuMGBo3YyC2rSk0L/Yax5 X-Received: by 2002:a5e:da44:: with SMTP id o4mr7547343iop.147.1631870870727; Fri, 17 Sep 2021 02:27:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631870870; cv=none; d=google.com; s=arc-20160816; b=rkQOeXRvJotLEXxZZl1ksjoPy3tTosC6qRkh52nm91/Kc8E237dBASQzVhW9yF1/z4 Ky4MHiSxOvIItB5qxdh6RyXdaMDxZbELIKcJNlOWHBxIu1tKfHBvM+6eiU5dszzF3cDZ tSv/CAyOQ0H8JmWd6Iz7LLEWFcmeVdvljljWsW7uTxZQJqSz+mUGu8aNpAEibxwj1UFl LS3770a9KKPNzVLgdo0GwmHE9T86QgIZKAaj+uGKC0lH7CnqKTXufGSMMd092MeFf/x6 q9dbz08eUZaatxNdIW0FuWItuvyTvVZf9qM75uja0QTymN8IWMVzUuyVXH0K3wd72rIz zizQ== 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=EEZ3KzJ/OoVk3tZxbZ8tD6FSY51r/kCa6gRIxucdHJM=; b=jEHcoC3w04/jR5V9kZBQ5sHHShpuIDOnn97D+5YV6j1ax3Yr5XtEuhFpWRVBWPh6dV q7P0LIlQIGn8SGWWkLhIPeI9DGta6rXH4qaaC0aTU8UtbGY4Fx8i8UTSrseL2cVUfHGO 9pxMFGQHLENLYHwJbjYNcTi8IQuzEXQAt2gPfJzXWL8KrX3AwCmEK+XGbUC6Q4gZIczJ wR1WG2jBa8K9vxaqgMEOrYrb612IHrKts3Uu0DG5ZTSb74dJR7zes8YGkbP5yusEUoza uROINZOs5tskl21qvo7paMqCjeGUXXLEPcERBrZ+2kyDEhJ5Mg+pWApU7QOOYlZZOLM0 z0fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=z48XNACM; 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 y6si2853005ioy.30.2021.09.17.02.27.38; Fri, 17 Sep 2021 02:27:50 -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=z48XNACM; 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 S241367AbhIPXKK (ORCPT + 99 others); Thu, 16 Sep 2021 19:10:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241216AbhIPXKJ (ORCPT ); Thu, 16 Sep 2021 19:10:09 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2ADEC061756 for ; Thu, 16 Sep 2021 16:08:47 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id b15so6361106lfe.7 for ; Thu, 16 Sep 2021 16:08:47 -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=EEZ3KzJ/OoVk3tZxbZ8tD6FSY51r/kCa6gRIxucdHJM=; b=z48XNACMi5II30bJAbbmdTmkselHRQoTfWaZRmNYCVPyXUj5bLzFr1Bh2hqfadlIV/ qUOax18dNGgiRKBPpDX9sEtQ5kjm7KUNdIrkxI218QPrls6K2KTjGz6+mjYo3emrVm5X WRnJFUdDh1oUplNZCRK2y/l9zMClcM+nkpOsFqu/F6awihIeu6bWgVLsqQPJEwZ/DDsd 9nrySfUBYR/rPcaL06JHsseWnnK1k3WPoZsUcvZyn+yu6sicOR85UeR0K0/erM6ggzjh dBKggmeAp1OhpVf1hcKPytH37NiRy7FXKYi3VrsfWugw50mnNUe2ZYNI3XCJFJFNLZE8 YnjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EEZ3KzJ/OoVk3tZxbZ8tD6FSY51r/kCa6gRIxucdHJM=; b=Gaqae2yO9KSlZnpmYo0Dz67abTnjA3Vr7OBfwlcVp8Eb+khKjgpRlZKQ5mvRXV0YvV IuUKXy9pRnafuksgl5ihz0RLj8k06f5gdHeA0DzDVXZUmcoRHcwFaGdYGPsHXhL9mdBa TVfyQaiXHNVtVP1fRwcvFDOGCH41RajK+D/3rEfkbeOsMKMXVkLjuOL1158NUabGY1TC CT8oSu+e0Kflvvv1XppXoG1/yRfQig0GWsG0i6K0PvLyKLW1X92mQTU3M7nPhTvNIlUh jhUiNQXzenWMk0BibRPKOlp2Q9NgGe5mpL62Dd1wehTM1JbEpWFqEfyjCapQLiTVTV1F kZxQ== X-Gm-Message-State: AOAM5317ec6N2Dg5BSzzETeeWrxSTdcRtptGL0EGEHwIeHA5YPynBgSE hria5yjZnQ3Un+oaL47OOYeaW+dzxX4BSBjmYMVMiw== X-Received: by 2002:a2e:4c19:: with SMTP id z25mr663526lja.145.1631833726007; Thu, 16 Sep 2021 16:08:46 -0700 (PDT) MIME-Version: 1.0 References: <1631798498-10864-1-git-send-email-skakit@codeaurora.org> <1631798498-10864-2-git-send-email-skakit@codeaurora.org> In-Reply-To: <1631798498-10864-2-git-send-email-skakit@codeaurora.org> From: Linus Walleij Date: Fri, 17 Sep 2021 01:08:35 +0200 Message-ID: Subject: Re: [PATCH V5 1/2] pinctrl: qcom: spmi-gpio: correct parent irqspec translation To: Satya Priya Cc: Rob Herring , Andy Gross , Bjorn Andersson , Stephen Boyd , 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 On Thu, Sep 16, 2021 at 3:22 PM 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 > Fixes: ca69e2d165eb ("qcom: spmi-gpio: add support for hierarchical IRQ chip") > Reviewed-by: Stephen Boyd Patch applied for fixes. Is a similar patch needed for drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c ? Notice ssbi rather than sbmi... Yours, Linus Walleij