linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Linus Walleij <linus.walleij@linaro.org>
To: 林圣欢 <linshenghuan@hangtu-china.com>
Cc: khilman <khilman@baylibre.com>,
	narmstrong <narmstrong@baylibre.com>,
	jbrunet <jbrunet@baylibre.com>,
	"martin.blumenstingl" <martin.blumenstingl@googlemail.com>,
	linux-gpio <linux-gpio@vger.kernel.org>,
	linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
	linux-amlogic <linux-amlogic@lists.infradead.org>,
	linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: 0001-add-amlogic-gpio-to-irq
Date: Fri, 4 Dec 2020 10:13:40 +0100	[thread overview]
Message-ID: <CACRpkdbvKWcD04SLLBOBuZWzN64xpVv1nfCXZGcSp9cs0MPivQ@mail.gmail.com> (raw)
In-Reply-To: <tencent_220963AF059847E1171B4AB9@qq.com>

Hi Lisheng,

this patch got a bit mangled but I get where you're going.

I think Meson needs to be augmented to use hierarchical gpiolib irqchip
because this seems to be what the system is doing.

So start with drivers/pinctrl/meson/Kconfig and add:

select GPIOLIB_IRQCHIP
select IRQ_DOMAIN_HIEARARCHY

Then use the generic hierarchical gpiolib irqchip as described
in Documentation/driver-api/gpio/driver.rst
Type
git grep child_to_parent_hwirq
for several examples of how to do this.

Yours,
Linus Walleij

       reply	other threads:[~2020-12-04  9:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <tencent_220963AF059847E1171B4AB9@qq.com>
2020-12-04  9:13 ` Linus Walleij [this message]
2020-12-04 14:24   ` 0001-add-amlogic-gpio-to-irq Jerome Brunet
2020-12-07 10:18     ` 0001-add-amlogic-gpio-to-irq Andy Shevchenko
2020-12-07 11:07       ` 0001-add-amlogic-gpio-to-irq Jerome Brunet
2020-12-07 12:34         ` 0001-add-amlogic-gpio-to-irq Linus Walleij
2020-12-07 13:25           ` 0001-add-amlogic-gpio-to-irq Jerome Brunet
2020-12-07 13:43             ` 0001-add-amlogic-gpio-to-irq Linus Walleij

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACRpkdbvKWcD04SLLBOBuZWzN64xpVv1nfCXZGcSp9cs0MPivQ@mail.gmail.com \
    --to=linus.walleij@linaro.org \
    --cc=jbrunet@baylibre.com \
    --cc=khilman@baylibre.com \
    --cc=linshenghuan@hangtu-china.com \
    --cc=linux-amlogic@lists.infradead.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=martin.blumenstingl@googlemail.com \
    --cc=narmstrong@baylibre.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).