From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: "Kim, Milo" <Milo.Kim@ti.com>
Cc: Axel Lin <axel.lin@ingics.com>, "Girdwood, Liam" <lrg@ti.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2 3/4] regulator-core: free requested GPIOs and manage the enable list
Date: Sun, 27 Jan 2013 14:10:37 +0800 [thread overview]
Message-ID: <20130127061034.GC8952@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <A874F61F95741C4A9BA573A70FE3998F69E12B3D@DQHE02.ent.ti.com>
[-- Attachment #1: Type: text/plain, Size: 691 bytes --]
On Tue, Jan 15, 2013 at 04:35:50AM +0000, Kim, Milo wrote:
> The regulator_ena_gpio_request() allocates the enable GPIO and add the list.
> Related resources should be released if they are not used any more.
> To free requested GPIO and remove it from the enable GPIO list,
> new function, 'regulator_ena_gpio_free()' is added.
Ah, sorry - I hadn't realised this patch had the cleanup code. This
needs a bit of an update - as I said for one of the earlier patches we
need to reference count to make sure we only free the GPIO when it has
no users. With this patch we will free the GPIO when the first
regulator to use it is freed which might mean other regulators are still
using it.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
prev parent reply other threads:[~2013-01-27 6:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-15 4:35 [PATCH v2 3/4] regulator-core: free requested GPIOs and manage the enable list Kim, Milo
2013-01-27 6:10 ` Mark Brown [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130127061034.GC8952@opensource.wolfsonmicro.com \
--to=broonie@opensource.wolfsonmicro.com \
--cc=Milo.Kim@ti.com \
--cc=axel.lin@ingics.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lrg@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).