[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210628145307.GC4492@sirena.org.uk>
Date: Mon, 28 Jun 2021 15:53:07 +0100
From: Mark Brown <broonie@...nel.org>
To: Alexandru Ardelean <aardelean@...iqon.com>
Cc: linux-kernel@...r.kernel.org, lgirdwood@...il.com,
Dmitry Torokhov <dmitry.torokhov@...il.com>,
Guenter Roeck <linux@...ck-us.net>
Subject: Re: [RFC PATCH] regulator: devres: disable regulator on release if
refcount is 1
On Fri, Jun 25, 2021 at 03:53:07PM +0300, Alexandru Ardelean wrote:
> This means that the last 'regulator_disable()' (on driver remove) becomes
> optional.
> If there are any unbalanced regulator_enable()/regulator_disable() calls,
> the 'enable_count' won't be touched and 'regulator_put()' will print a
> warning.
This doesn't seem like it's going to make reviewing and debugging
reference counting issues any easier, it seems even more of a concern
than a devm version TBH. It's also not clear why if we were doing this
we'd restrict it to a single reference.
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists