Re: [PATCH v1] gpio: gpio-grgpio: call request_irq after incrementing the reference count

From: Alex Tran
Date: Thu Oct 02 2025 - 01:41:49 EST


> Any chance this could be made to use atomic_t instead?
>
> Like:
>
> if (atomic_fetch_add(1, &priv->uirqs) == 0) {
> request_irq()
> ...
> }
>
> ?
>
> Bart

Sure, the reference count can be converted to atomic_t. I'll follow up
with a v2 patch.

Thanks,
--
Alex Tran