Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2178146pxb; Fri, 24 Sep 2021 23:32:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEsRpIHhZL9h0YDvKol3vfpsxTGW/p5D5Ro7IOqgRDW8kXV+DxFZGnHzMDZFc/33Sk4fl5 X-Received: by 2002:a05:6638:1389:: with SMTP id w9mr12729512jad.138.1632551575187; Fri, 24 Sep 2021 23:32:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632551575; cv=none; d=google.com; s=arc-20160816; b=HqaxrTGCKFkj8YjQ8p7WJuwwubBSVhLDw8cMx0zRJXQut7rT2imRv+0mZ6aZomGlf5 sJS+tXMC3vxcvHu2VKx7nJprnAssXNy6GkeWEEohPX0fhs9xHzQef4k1YRr6jJnlek+T BPzUNZBejpPoolfcXww6Xt4doEk+6T/DcYG+IzOkxWcE1tmAQwf04AViSuFMwCopHpn8 wRY0ls8NTR2SrJ0NvcR4fOZPTHXBr5ZEoJA8gBKMnhU3P2XTEA9KOJg7pIEya1IolQyC +X0MV/C/52QcaFJxPKNBySnW71xDcwCAM+c90BmcMnrAbMciAAZcB7lbFT/f23mfXTH8 C0lg== 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=E0zLyeg+HnNBHyfJ2Gaj3wqhdcjSDpgrhHMZdzYFdWo=; b=nTDH2WlJHmt3Fu857uRbggcAMpV0cbOXrMT4l5K3Ufreqdc4ZdtGjfBz58CiIScOAQ aU4CJcsm3LlzZ1vErJWCTGhUgn40RNrwn/lA0xrio/KK/3/Km+40OMInXqEX6Onbl7MH nK2XxjSZjmtFvzIcFTfnCnz8PiXKcXY7V/3rCQAfQ3eu6aX6WAnXiJJoGTFlXQMyZ/2P xeX4ifsqbUD6jXw8mlrNBN4N0IXr65GVFmmDdP4NABHlabVlgUG5yO+mUzLQwVrEjyi3 77Prj60VVDJiA4rHl+YGM/UCLg8wNhhL4qZ+wQ240HyNubWhlm4h5dPmxBRxjPzInzL8 VMHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dREPaIGe; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t21si6126955jac.10.2021.09.24.23.32.38; Fri, 24 Sep 2021 23:32:55 -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=@gmail.com header.s=20210112 header.b=dREPaIGe; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232552AbhIXVuM (ORCPT + 99 others); Fri, 24 Sep 2021 17:50:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230238AbhIXVuL (ORCPT ); Fri, 24 Sep 2021 17:50:11 -0400 Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 118ADC061571; Fri, 24 Sep 2021 14:48:38 -0700 (PDT) Received: by mail-yb1-xb35.google.com with SMTP id m70so8741062ybm.5; Fri, 24 Sep 2021 14:48:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=E0zLyeg+HnNBHyfJ2Gaj3wqhdcjSDpgrhHMZdzYFdWo=; b=dREPaIGedrp9Bi9YwYuDZlKU0x0rlsrMnnAkEXsyxtC/KrOpA+KS/THhI5dAHo5fO5 ZK1L3JBu2G/n6M+W6yOSttpEDQtBW3QpE/dMjxnlRfUKjhbfPpzJWY/9YpP9Z2rrIpce MFM7xzX5VlLyw74Zcx/2PYKt0Edu4GHsulSqrZGyMoAERUYeGcVSKbI+ZjEIdY0HlMMS ed768LJgxeiIFX3f7/eZT6z8e2l/Wvu9DCwupAGKURECFCpo5DdX7+d3LdpmHHAfgvJP xSLJGpvHRAn7zpNqM3E0Nz8VPcS4E5ww2u61tnvZ9nTeQBvmJ75LI6dFpNnFfEe3PLLO X5Pg== 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=E0zLyeg+HnNBHyfJ2Gaj3wqhdcjSDpgrhHMZdzYFdWo=; b=2oPTTie0rFMMpq36YVOZ/YIcP4GtyR2dnDOcaxOQlmAXnokyfzfzV62nICtyreVD1E 2yfrz47ia2VUP9t8DSTfPIuDXPyQ1B8yQuQme8BYl8pBxmxYg1v6QNdvUVL0QRApbNvn Qiupaf5fBTMxeWktkyH5Y8KAkR2TFEsOu6m9cT04QQuLNdZRI9TitCnAb3/ebmTe5RMI qQW9BJvPsN+T+wBFSq8Ah+1Yn9oRTsrcHZjCr5ABGr8CFYgfuNDdRdGBBYwVmeWo6wJl D998/asKV95ky6JAQd8H58GKdStyaLmyfKO0C+aBkgzlMEcaYYPgBDPehbBCNVdWneqm vTtg== X-Gm-Message-State: AOAM531DdGztUAvp6KQI8UsvH4JxWbFnbU4aXkBz/hbR8oH5vxsNBy0J VG7Q0dA8DLjBbhVIUpuYFRuhWXolBf1AWYX24uU= X-Received: by 2002:a25:2492:: with SMTP id k140mr15464219ybk.254.1632520117288; Fri, 24 Sep 2021 14:48:37 -0700 (PDT) MIME-Version: 1.0 References: <20210921193028.13099-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20210921193028.13099-4-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: From: "Lad, Prabhakar" Date: Fri, 24 Sep 2021 22:48:11 +0100 Message-ID: Subject: Re: [RFC PATCH v2 3/4] pinctrl: renesas: pinctrl-rzg2l: Add IRQ domain to handle GPIO interrupt To: Linus Walleij Cc: Lad Prabhakar , Marc Zyngier , Thomas Gleixner , Geert Uytterhoeven , Rob Herring , Magnus Damm , "open list:GPIO SUBSYSTEM" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-kernel , Linux-Renesas , Biju Das Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Linus, Thank you for the review. On Thu, Sep 23, 2021 at 10:38 PM Linus Walleij wrote: > > On Tue, Sep 21, 2021 at 9:30 PM Lad Prabhakar > wrote: > > > Add IRQ domian to RZ/G2L pinctrl driver to handle GPIO interrupt. > > > > GPIO0-GPIO122 pins can be used as IRQ lines but only 32 pins can be > > used as IRQ lines at given time. Selection of pins as IRQ lines > > is handled by IA55 (which is the IRQC block) which sits in between the > > GPIO and GIC. > > > > Signed-off-by: Lad Prabhakar > > Why can't you just use the hierarchical IRQ domain handling inside > gpiolib? > Will do that in the next version. > See for example drivers/gpio/gpio-ixp4xx.c for an example of how this > is used. > Thank you for the pointer. Cheers, Prabhakar