public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Lee Jones <lee.jones@linaro.org>
To: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Cc: sameo@linux.intel.com, broonie@kernel.org,
	patches@opensource.wolfsonmicro.com,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2 v2] mfd: wm5102: Mark register write sequencer control 3 readable
Date: Thu, 21 Aug 2014 13:01:06 +0100	[thread overview]
Message-ID: <20140821120106.GD4266@lee--X1> (raw)
In-Reply-To: <1407926567-10047-1-git-send-email-ckeepax@opensource.wolfsonmicro.com>

On Wed, 13 Aug 2014, Charles Keepax wrote:

> From: Mark Brown <broonie@linaro.org>
> 
> During init the core checks if the wm5102 has finished starting by reading
> register 0x19 and looking at the value. This read always fails since this
> is not a readable register, mark it as being one. While we're at it provide
> a constant for the register name (as supplied by Charles Keepax).
> 
> Signed-off-by: Mark Brown <broonie@linaro.org>
> Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
> ---
> 
> Just added the sign-off I forgot on the last version.
> 
> Thanks,
> Charles
> 
>  drivers/mfd/arizona-core.c            |    3 ++-
>  drivers/mfd/wm5102-tables.c           |    1 +
>  include/linux/mfd/arizona/registers.h |    1 +
>  3 files changed, 4 insertions(+), 1 deletions(-)

Applied, thanks.

> diff --git a/drivers/mfd/arizona-core.c b/drivers/mfd/arizona-core.c
> index 10a0cb9..7eabc36 100644
> --- a/drivers/mfd/arizona-core.c
> +++ b/drivers/mfd/arizona-core.c
> @@ -784,7 +784,8 @@ int arizona_dev_init(struct arizona *arizona)
>  	/* Ensure device startup is complete */
>  	switch (arizona->type) {
>  	case WM5102:
> -		ret = regmap_read(arizona->regmap, 0x19, &val);
> +		ret = regmap_read(arizona->regmap,
> +				  ARIZONA_WRITE_SEQUENCER_CTRL_3, &val);
>  		if (ret != 0)
>  			dev_err(dev,
>  				"Failed to check write sequencer state: %d\n",
> diff --git a/drivers/mfd/wm5102-tables.c b/drivers/mfd/wm5102-tables.c
> index fb4d4bb..c18d527 100644
> --- a/drivers/mfd/wm5102-tables.c
> +++ b/drivers/mfd/wm5102-tables.c
> @@ -1016,6 +1016,7 @@ static bool wm5102_readable_register(struct device *dev, unsigned int reg)
>  	case ARIZONA_WRITE_SEQUENCER_CTRL_0:
>  	case ARIZONA_WRITE_SEQUENCER_CTRL_1:
>  	case ARIZONA_WRITE_SEQUENCER_CTRL_2:
> +	case ARIZONA_WRITE_SEQUENCER_CTRL_3:
>  	case ARIZONA_WRITE_SEQUENCER_PROM:
>  	case ARIZONA_TONE_GENERATOR_1:
>  	case ARIZONA_TONE_GENERATOR_2:
> diff --git a/include/linux/mfd/arizona/registers.h b/include/linux/mfd/arizona/registers.h
> index dbd23c3..68913ec 100644
> --- a/include/linux/mfd/arizona/registers.h
> +++ b/include/linux/mfd/arizona/registers.h
> @@ -27,6 +27,7 @@
>  #define ARIZONA_WRITE_SEQUENCER_CTRL_0           0x16
>  #define ARIZONA_WRITE_SEQUENCER_CTRL_1           0x17
>  #define ARIZONA_WRITE_SEQUENCER_CTRL_2           0x18
> +#define ARIZONA_WRITE_SEQUENCER_CTRL_3           0x19
>  #define ARIZONA_WRITE_SEQUENCER_PROM             0x1A
>  #define ARIZONA_TONE_GENERATOR_1                 0x20
>  #define ARIZONA_TONE_GENERATOR_2                 0x21

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

      parent reply	other threads:[~2014-08-21 12:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-13 10:42 [PATCH 1/2 v2] mfd: wm5102: Mark register write sequencer control 3 readable Charles Keepax
2014-08-13 10:42 ` [PATCH 2/2 v2] mfd: arizona: Mark additional registers as volatile Charles Keepax
2014-08-21 12:01   ` Lee Jones
2014-08-21 12:01 ` Lee Jones [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=20140821120106.GD4266@lee--X1 \
    --to=lee.jones@linaro.org \
    --cc=broonie@kernel.org \
    --cc=ckeepax@opensource.wolfsonmicro.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=patches@opensource.wolfsonmicro.com \
    --cc=sameo@linux.intel.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