Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp964449pxb; Thu, 23 Sep 2021 14:40:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4iRg6g5VoOoxdzErY0Lfa2/qu2bq0GreNyXugygOPlfF3gSkKU0YVJj0yzI4ud9viMSUp X-Received: by 2002:a6b:b785:: with SMTP id h127mr5880289iof.149.1632433213992; Thu, 23 Sep 2021 14:40:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632433213; cv=none; d=google.com; s=arc-20160816; b=Tc2+QafA7Z9FqAjchXw0+MBc+tIwzuUmIeWKVVBI9/QM2joaVlxC3Flkn7c1DidFtq +yrXnHfgv62ppMsJbcvp5Cg+gofQBheZPPraCTn0lHiQl7KojvnmWJRN5E/Ea/mM0db7 GFRqw2h0hl0bWbHpkCu+KCla5ucBZRxUNAdoLP0S52Ylp3Oc3bXR9rXj3LrbQoio9x/D 6bvd1PI4ds1Ejlt199oHCOUnnvhxoqhpEd3lBFY2hP6TWg62mJh5SB/v1AW+G9VaESwy G1Ad1fWtG6l1PbQ9Cun39KlEXfZgJEEKjz2puol/qJ6OfKavqMbIUQUK72+WHwMDslwI Ubhg== 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=rjjBaXfqNNUcdJzsG6m5aGab91aTceqgqatTorcUUUI=; b=PkB6te+kSdQMfxxWfu6FFSFHSvzh2tZpK0dO9zPqmFMrglwnX2ehkzq0yZT6jNwb3M MixiCPsQkvqN2ykH1CF0vIhiPRBoNBeWrE561iLTWidJJqQyW98p6RmENb3cFBFPx1gw 71kwq0TrCkAw1n9X9brRAeEf5SGDVrgwAD7mL3rOhMbniRRQgbEQkyp70egymorJh9y1 lpFJAdLH/x94Fb+vLN8/05uPj6QmwfkoCJ9o31JMYDph5fV4bYQ2AJJ0LdLdvjULFPdw 5Yxwv0Cz313a5NFKG58YyZQjYnEsRxjwJRFnpMO4mD0F4WARsre+g7iNkBswk0AixR4f Ps9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZCwMPGAX; 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 g19si7997261ilb.43.2021.09.23.14.40.01; Thu, 23 Sep 2021 14:40:13 -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=ZCwMPGAX; 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 S243343AbhIWVjf (ORCPT + 99 others); Thu, 23 Sep 2021 17:39:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243363AbhIWVjf (ORCPT ); Thu, 23 Sep 2021 17:39:35 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E254DC06175F for ; Thu, 23 Sep 2021 14:38:02 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id b15so30847340lfe.7 for ; Thu, 23 Sep 2021 14:38:02 -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=rjjBaXfqNNUcdJzsG6m5aGab91aTceqgqatTorcUUUI=; b=ZCwMPGAXGKLBFRYuYrwbs13zHz/AAN2TIIV242eDN6gPpeRYT94w+/jKCMTRc9DvDh Y+0ZGTUgV55tWWY9C86yQ/8vQlR2UmHBvMtGtaFTwuA1rzIdPwdTPRHGb/JRDv9I++Al OaIaH6dvUZfN/V2Mrl+H84/1yeY7ra2KZWYpOot5YvYopMjaEexKWuEiThQ2VKpzDtA2 ac3abxcii/mz/96OIN3XsQvf7GTr40Iu/KAptR+LLLyHrUk1uP+c1kl0BUrF1C2iU+4T K5vRZj6KcX55ueG9uEbdING9AWiZX93f3/CGpU2Ktnv56imeGBn/NfD9Og+dCj7e3mBt njAA== 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=rjjBaXfqNNUcdJzsG6m5aGab91aTceqgqatTorcUUUI=; b=n/dJ1VkYKi7zGkai7W/gnbOov2bUa4yGr2IcI2stToQxR8PQyzinc+pJGYOCVbFkRR FcwcUHY87PW6Clk99XeW46DFbDqiK67FdphAi+6TNGgayMqlXzoZGCskTRWEOJXWHwZb HcxEJncejUivciPsu6YPWP6bwOr0YcwdYkMkTRXYtZ70dRNCyY25DGYutDjp7hAJcBrB riOwbdtOIiqLKPPK5l1X7RLMF/UUF+FIcp4qgnwG0HJVi02lBOFN5XFqT39CEWzV+3MV HnceKWNHEoA8FmhxIkwW0jvjLGTjZi/6AidYiBncid063U8MyIax7YPmbrxYj5cG83xZ yslg== X-Gm-Message-State: AOAM5320QCm+zcWN37WnlCKMFMo0qy9y6fj0Ibbsfl4z77a9u6nnz/Z8 kiR6QfUGMxTrOc0oiZwtbT34A9OMRzNg/31n7krarw== X-Received: by 2002:ac2:4d03:: with SMTP id r3mr6525070lfi.339.1632433081198; Thu, 23 Sep 2021 14:38:01 -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: <20210921193028.13099-4-prabhakar.mahadev-lad.rj@bp.renesas.com> From: Linus Walleij Date: Thu, 23 Sep 2021 23:37:50 +0200 Message-ID: Subject: Re: [RFC PATCH v2 3/4] pinctrl: renesas: pinctrl-rzg2l: Add IRQ domain to handle GPIO interrupt To: Lad Prabhakar Cc: 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 , Prabhakar , Biju Das Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? See for example drivers/gpio/gpio-ixp4xx.c for an example of how this is used. Yours, Linus Walleij