From: Sergey Kiselev <sergey.kiselev@intel.com>
To: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Cc: Liam Girdwood <liam.r.girdwood@linux.intel.com>,
alsa-devel@alsa-project.org, Mark Brown <broonie@kernel.org>,
Lars-Peter Clausen <lars@metafoo.de>,
patches@opensource.wolfsonmicro.com
Subject: Re: [PATCH] ASoC: wm8731: initialize the hardware when loading the codec driver
Date: Fri, 5 Jun 2015 11:20:26 -0700 [thread overview]
Message-ID: <20150605112026.5ec1809046fdd1817691ce05@intel.com> (raw)
In-Reply-To: <20150605162546.GB32730@opensource.wolfsonmicro.com>
On Fri, 5 Jun 2015 17:25:46 +0100
Charles Keepax <ckeepax@opensource.wolfsonmicro.com> wrote:
> On Wed, Jun 03, 2015 at 01:19:26PM -0700, Sergey Kiselev wrote:
> > From: Sergey Kiselev <sergey.kiselev@intel.com>
> []
> > /* Regulators will have been enabled by bias management */
>
> This comment needs an update because this function is only called
> from the bus probe so no bias management will have been called
> yet. Basically we are powering down here after probe is complete
> and the bias management will power us up again.
I think that's what the comment says (future perfect tense?!). I can
rephrase it with something simpler like "regulators will be enabled by
bias management". English is not my mother tongue, and I appreciate any
corrections. :-)
>
> > regulator_bulk_disable(ARRAY_SIZE(wm8731->supplies), wm8731->supplies);
> > @@ -621,19 +631,7 @@ err_regulator_enable:
>
> Looks like you really should just combine the error and normal
> exit paths for this function.
>
Will do.
> > return ret;
> > + regulator_bulk_disable(ARRAY_SIZE(wm8731->supplies), wm8731->supplies);
> > +
>
> Do we actually need to bulk_disable here? The enable we did
> during bus probe is balanced with the disable we do there two.
> Then I would expect that ASoC has put us back into bias off
> before we are removing the i2c. Not a 100% sure on this one but
> it looks like it is redundant.
>
I think you're correct. Actually the DAPM will turn the bias off when
machine driver is removed, which must happen before codec is removed.
> Thanks,
> Charles
--
Sergey
next prev parent reply other threads:[~2015-06-05 18:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-03 20:19 [PATCH] ASoC: wm8731: initialize the hardware when loading the codec driver Sergey Kiselev
2015-06-05 16:25 ` Charles Keepax
2015-06-05 18:20 ` Sergey Kiselev [this message]
2015-06-05 18:27 ` Mark Brown
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=20150605112026.5ec1809046fdd1817691ce05@intel.com \
--to=sergey.kiselev@intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=ckeepax@opensource.wolfsonmicro.com \
--cc=lars@metafoo.de \
--cc=liam.r.girdwood@linux.intel.com \
--cc=patches@opensource.wolfsonmicro.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