All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Eric Millbrandt <emillbrandt@dekaresearch.com>
Cc: alsa-devel@alsa-project.org, Liam Girdwood <lrg@ti.com>
Subject: Re: [PATCH] ASoC: codecs/wm8978: Only reconfigure GPIO1 when used for PLL output
Date: Tue, 13 Nov 2012 15:44:15 +0900	[thread overview]
Message-ID: <20121113064410.GE18224@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <1352482418-64950-1-git-send-email-emillbrandt@dekaresearch.com>


[-- Attachment #1.1: Type: text/plain, Size: 1217 bytes --]

On Fri, Nov 09, 2012 at 12:33:38PM -0500, Eric Millbrandt wrote:

> When GPIO1 is used for other purposes than PLL output (GPIO, Amute, etc) the
> driver incorrectly reconfigures the pin to input when the PLL is recalculated.
> Only reconfigure the pin for input when reconfiguring the PLL and GPIO1 is
> used for PLL output.

I'm really having a hard time understanding what this change improves.

> -		snd_soc_update_bits(codec, WM8978_GPIO_CONTROL, 0x30,
> +		/*
> +		 * GPIO1 is used for OPCLK, reconfigure into default
> +		 * mode as input - before configuring OPCLKDIV and PLL
> +		 */
> +		snd_soc_update_bits(codec, WM8978_GPIO_CONTROL, 0x37,
>  				    (opclk_div - 1) << 4);

Previously we weren't changing the pin mode at all, we were only
updating the bitfield that contains OPCLK.  With your change we will
also change the pin mode to input, but if the pin is doing any form of
output (or anything other than input mode) I'd expect this to at least
glitch things which seems actively harmful.  Why is it being set up as
an input?  Though I have to say that all this handling of the pin in the
existing driver looks at best odd.

Your changelog describes what you're doing but not what is being
fixed...

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



  reply	other threads:[~2012-11-13  6:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-09 17:33 [PATCH] ASoC: codecs/wm8978: Only reconfigure GPIO1 when used for PLL output Eric Millbrandt
2012-11-13  6:44 ` Mark Brown [this message]
2012-11-13 14:43   ` Eric Millbrandt
2012-11-15  5:20     ` Mark Brown
2012-11-15 19:35       ` Eric Millbrandt

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=20121113064410.GE18224@opensource.wolfsonmicro.com \
    --to=broonie@opensource.wolfsonmicro.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=emillbrandt@dekaresearch.com \
    --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 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.