Re: [PATCH/RFC] drivers/irqchip: add irq-inverter

From: Nikita Yushchenko
Date: Wed Dec 29 2021 - 14:52:27 EST


Hi

The right way to do it is to use the existing API by exposing the
inverter (there are existing examples in the tree, using the
hierarchical model)...
>
A much simpler version can be written in a few minutes, see below...

Can something like that be used if the parent domain is not hierarchical (i.e. does not provide alloc(), but provides map() instead)?

In particular, gpio-rcar currently provides irq domain that is not hierarchical.
As well as quite a few other gpiochips.

Nikita