[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CA+hkOd7ch=-Mi10njagF1bwW7fFRwm8fkiWD4RueMih02_12rw@mail.gmail.com>
Date: Wed, 1 Oct 2025 22:41:31 -0700
From: Alex Tran <alex.t.tran@...il.com>
To: Bartosz Golaszewski <brgl@...ev.pl>
Cc: linux-gpio@...r.kernel.org, linux-kernel@...r.kernel.org,
Linus Walleij <linus.walleij@...aro.org>
Subject: Re: [PATCH v1] gpio: gpio-grgpio: call request_irq after incrementing
the reference count
> 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
Powered by blists - more mailing lists