Re: [PATCH v1] gpio: gpio-grgpio: call request_irq after incrementing the reference count
From: Linus Walleij
Date: Wed Oct 01 2025 - 04:30:05 EST
On Sun, Sep 28, 2025 at 7:41 AM Alex Tran <alex.t.tran@xxxxxxxxx> wrote:
> Remove extraneous dropping of the lock just to call 'request_irq'
> and locking again afterwards. Increment reference count
> before calling 'request_irq'. Rollback reference count if
> 'request_irq' fails.
>
> Signed-off-by: Alex Tran <alex.t.tran@xxxxxxxxx>
This looks right.
Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
Yours,
Linus Walleij