From: Eric Nelson <eric.nelson@boundarydevices.com>
To: Russell King - ARM Linux <linux@arm.linux.org.uk>
Cc: fabio.estevam@freescale.com, alsa-devel@alsa-project.org,
lars@metafoo.de, tiwai@suse.de, lgirdwood@gmail.com,
broonie@kernel.org, jean-michel.hautbois@vodalys.com,
troy.kisky@boundarydevices.com
Subject: Re: [PATCH RFC 0/6] ASoC: sgtl5000: fix use of regulators and internal LDO
Date: Fri, 06 Mar 2015 16:16:18 -0700 [thread overview]
Message-ID: <54FA3542.1010402@boundarydevices.com> (raw)
In-Reply-To: <54FA3122.9050805@boundarydevices.com>
Hi Russell,
On 03/06/2015 03:58 PM, Eric Nelson wrote:
> Hi Russell,
>
> On 03/06/2015 03:53 PM, Russell King - ARM Linux wrote:
>> On Fri, Mar 06, 2015 at 03:49:39PM -0700, Eric Nelson wrote:
>>> Based on your review, it seems like the following is needed for a
>>> V2 patch (set):
>>>
>>> - Move call to sgtl5000_fill_defaults() earlier in the
>>> sgtl5000_i2c_probe routine, before adjusting ANA_POWER.
>>> This will allow registers LINEREG_CTRL, CLK_CTRL, and even ANA_POWER
>>> back into the default register list.
>>> - Move regulators from codec to I2C device
>>> - switch to devm_regulator api
>>> - various code cleanups to simplify logic
>>> - Adjust regulator usage in SND_SOC_BIAS_OFF
>>>
>>> I'll leave out the "write all default" registers for the moment.
>>
>> I'll also interject here to say that, against mainline, I need this
>> patch to make the sgtl5k work on SolidRun's Hummingboard hardware.
>> Without this, the internal regulator seems to get powered down, and
>> we lose access to the device until the entire board is power cycled.
>>
>
> Mark applied essentially the patch below separately from
> the LDO support:
> http://mailman.alsa-project.org/pipermail/alsa-devel/2015-February/088376.html
> http://mailman.alsa-project.org/pipermail/alsa-devel/2015-March/088773.html
>
>> sound/soc/codecs/sgtl5000.c | 11 +++++++++--
>> 1 file changed, 9 insertions(+), 2 deletions(-)
>>
>> diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c
>> index e182e6569bbd..79d5cbd65f36 100644
>> --- a/sound/soc/codecs/sgtl5000.c
>> +++ b/sound/soc/codecs/sgtl5000.c
>> @@ -825,6 +825,10 @@ static int ldo_regulator_disable(struct regulator_dev *dev)
>> struct snd_soc_codec *codec = (struct snd_soc_codec *)ldo->codec_data;
>>
Sorry. This part of the patch you sent wasn't included in the
patch I mentioned above:
>> snd_soc_update_bits(codec, SGTL5000_CHIP_ANA_POWER,
>> + SGTL5000_LINREG_SIMPLE_POWERUP,
>> + SGTL5000_LINREG_SIMPLE_POWERUP);
>> +
>> + snd_soc_update_bits(codec, SGTL5000_CHIP_ANA_POWER,
>> SGTL5000_LINEREG_D_POWERUP,
>> 0);
>>
In the full patch-set, initialization of ANA_POWER is placed inside
the sgtl5000_i2c_probe routine and the ldo_regulator is discarded.
I'm not sure why the code above is needed though.
Do you know what sequence of events causes this to fail?
Please advise,
Eric
next prev parent reply other threads:[~2015-03-06 23:16 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-26 22:54 [PATCH RFC 0/6] ASoC: sgtl5000: fix use of regulators and internal LDO Eric Nelson
2015-02-26 22:54 ` [RFC PATCH 1/6] ASoC: sgtl5000: fix regulator support Eric Nelson
2015-03-06 20:04 ` Mark Brown
2015-03-06 21:09 ` Eric Nelson
2015-03-07 9:59 ` Mark Brown
2015-02-26 22:54 ` [RFC PATCH 2/6] ASoC: sgtl5000: write all default registers Eric Nelson
2015-03-06 20:14 ` Mark Brown
2015-03-06 22:24 ` Eric Nelson
2016-06-15 14:38 ` Applied "ASoC: sgtl5000: Write all default registers" to the asoc tree Mark Brown
2015-02-26 22:54 ` [RFC PATCH 3/6] ASoC: sgtl5000: initialize CHIP_ANA_POWER to power-on defaults Eric Nelson
2015-03-06 20:12 ` Mark Brown
2015-03-06 22:14 ` Eric Nelson
2015-03-07 10:28 ` Mark Brown
2015-02-26 22:54 ` [RFC PATCH 4/6] ASoC: sgtl5000: check return values Eric Nelson
2015-02-26 22:54 ` [RFC PATCH 5/6] ASoC: sgtl5000: disable internal PLL early Eric Nelson
2015-03-06 20:15 ` Mark Brown
2015-03-06 22:16 ` Eric Nelson
2016-06-15 14:38 ` Applied "ASoC: sgtl5000: Disable internal PLL early" to the asoc tree Mark Brown
2015-02-26 22:54 ` [RFC PATCH 6/6] ASoC: sgtl5000: Don't disable regulators in SND_SOC_BIAS_OFF Eric Nelson
2015-03-06 20:16 ` Mark Brown
2015-03-06 22:35 ` Eric Nelson
2015-03-07 10:41 ` Mark Brown
2015-03-06 22:49 ` [PATCH RFC 0/6] ASoC: sgtl5000: fix use of regulators and internal LDO Eric Nelson
2015-03-06 22:53 ` Russell King - ARM Linux
2015-03-06 22:58 ` Eric Nelson
2015-03-06 23:16 ` Eric Nelson [this message]
2015-03-06 23:24 ` Russell King - ARM Linux
2015-03-06 23:31 ` Eric Nelson
2015-03-07 10:45 ` 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=54FA3542.1010402@boundarydevices.com \
--to=eric.nelson@boundarydevices.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=fabio.estevam@freescale.com \
--cc=jean-michel.hautbois@vodalys.com \
--cc=lars@metafoo.de \
--cc=lgirdwood@gmail.com \
--cc=linux@arm.linux.org.uk \
--cc=tiwai@suse.de \
--cc=troy.kisky@boundarydevices.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.