From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Joonyoung Shim <jy0922.shim@samsung.com>
Cc: lrg@slimlogic.co.uk, kyungmin.park@samsung.com,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] regulator: Fix WM8994 LDO enable gpio set when probed
Date: Fri, 6 Aug 2010 11:41:20 +0100 [thread overview]
Message-ID: <20100806104120.GD398@rakim.wolfsonmicro.main> (raw)
In-Reply-To: <1281060446-399-1-git-send-email-jy0922.shim@samsung.com>
On Fri, Aug 06, 2010 at 11:07:26AM +0900, Joonyoung Shim wrote:
> The enable time needs to enable WM8994 LDO, but WM8994 LDO is enabled
> without the enable time at the probe function. This can cause the
> problem to try i2c operation before LDO is enabled.
> This patch sets to 0 WM8994 LDO enable gpio when probed then if it is
> requested to enable WM8994 LDO, will be enabled by enable interface of
> regulator core with enable time.
That's not what the patch actually does. It's not changing the GPIO
that is configured at all, it is changing the configuration of the flag
which says if the GPIO has been enabled. This made it very hard to
follow what you're trying to do here. The change itself is OK but
please supply a better changelog (actually I think I may just rewrite
the changelog for you and send on a new version to Liam - you'll be CCed
if I do this).
The underlying problem here is that due to the gpiolib API it's not
possible for us to read the status of the GPIO when we inherit it at
startup. If the GPIO was already high when we started then the current
code is fine, if it was low we don't have the delay.
prev parent reply other threads:[~2010-08-06 10:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-06 2:07 [PATCH] regulator: Fix WM8994 LDO enable gpio set when probed Joonyoung Shim
2010-08-06 10:41 ` 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=20100806104120.GD398@rakim.wolfsonmicro.main \
--to=broonie@opensource.wolfsonmicro.com \
--cc=jy0922.shim@samsung.com \
--cc=kyungmin.park@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lrg@slimlogic.co.uk \
/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