Messages in this thread | | | From | Linus Walleij <> | Date | Thu, 19 May 2022 15:30:07 +0200 | Subject | Re: [PATCH v4 4/7] gpio: gpiolib: Dont assume child_offset_to_irq callback always succeeds |
| |
On Wed, May 18, 2022 at 9:30 PM Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> wrote:
> On Renesas RZ/G2L SoC not all the GPIO pins can be simultaneously used as > interrupts. The SoC allows 32 interrupts which is first come first serve > basis and is dynamic i.e. if there is a free slot (after rmmod) this can > be used by other GPIO pins being used as an interrupt. > > To handle such cases change child_offset_to_irq() callback to return error > codes in case of failure. All the users of child_offset_to_irq() callback > are also updated with this API change. > > Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
This looks very useful! Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Yours, Linus Walleij
| |