Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1251271 > unrolled thread

[PATCH v2 0/2] *** wm8962 regmap related fix ***

Started byJiada Wang <jiada_wang@mentor.com>
First post2015-10-20 04:50 +0200
Last post2015-10-20 10:20 +0200
Articles 3 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH v2 0/2] *** wm8962 regmap related fix *** Jiada Wang <jiada_wang@mentor.com> - 2015-10-20 04:50 +0200
    [PATCH 1/2] ASoC: WM8962: mark cache_dirty flag after software reset in pm_resume Jiada Wang <jiada_wang@mentor.com> - 2015-10-20 04:50 +0200
      Re: [PATCH 1/2] ASoC: WM8962: mark cache_dirty flag after software  reset in pm_resume Charles Keepax <ckeepax@opensource.wolfsonmicro.com> - 2015-10-20 10:20 +0200

#1251271 — [PATCH v2 0/2] *** wm8962 regmap related fix ***

FromJiada Wang <jiada_wang@mentor.com>
Date2015-10-20 04:50 +0200
Subject[PATCH v2 0/2] *** wm8962 regmap related fix ***
Message-ID<qlv9T-7bZ-3@gated-at.bofh.it>
This patch set aims to fix issues in wm8962 codec driver related to regmap,
currently any attempt to read from ALC Coefficient register will fail
when wm8962 is in suspend mode. As ALC2 register is volatile register,
it can't be read when cache_only flag is set.

Another issue is, if wm8962's regulator is set to 'regulator-always-on'
mode, then after wm8962 is resumed from suspend, wm8962 codec is reset,
but cache_dirty flag isn't set, this cause difference between actual wm8962
HW and regmap cache.


Changeset:
--------------
v1 -> v2
* removed comment before regcache_mark_dirty 

Jiada Wang (2):
  ASoC: WM8962: mark cache_dirty flag after software reset in pm_resume
  ASoC: Codec: wm8962: declare ALC Coefficients as 4 separate registers

 sound/soc/codecs/wm8962.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

-- 
2.4.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1251272 — [PATCH 1/2] ASoC: WM8962: mark cache_dirty flag after software reset in pm_resume

FromJiada Wang <jiada_wang@mentor.com>
Date2015-10-20 04:50 +0200
Subject[PATCH 1/2] ASoC: WM8962: mark cache_dirty flag after software reset in pm_resume
Message-ID<qlv9T-7bZ-7@gated-at.bofh.it>
In reply to#1251271
By doing software reset of wm8962 in pm_resume, all registers which
have already been set will be reset to default value without regmap
interface be involved, thus driver need to mark cache_dirty flag,
to let regcache can be updated by regcache_sync().

Signed-off-by: Jiada Wang <jiada_wang@mentor.com>
---
 sound/soc/codecs/wm8962.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c
index 293e47a..a3d7778 100644
--- a/sound/soc/codecs/wm8962.c
+++ b/sound/soc/codecs/wm8962.c
@@ -3805,6 +3805,8 @@ static int wm8962_runtime_resume(struct device *dev)
 
 	wm8962_reset(wm8962);
 
+	regcache_mark_dirty(wm8962->regmap);
+
 	/* SYSCLK defaults to on; make sure it is off so we can safely
 	 * write to registers if the device is declocked.
 	 */
-- 
2.4.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1251426 — Re: [PATCH 1/2] ASoC: WM8962: mark cache_dirty flag after software reset in pm_resume

FromCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Date2015-10-20 10:20 +0200
SubjectRe: [PATCH 1/2] ASoC: WM8962: mark cache_dirty flag after software reset in pm_resume
Message-ID<qlAjg-6os-17@gated-at.bofh.it>
In reply to#1251272
On Tue, Oct 20, 2015 at 11:47:11AM +0900, Jiada Wang wrote:
> By doing software reset of wm8962 in pm_resume, all registers which
> have already been set will be reset to default value without regmap
> interface be involved, thus driver need to mark cache_dirty flag,
> to let regcache can be updated by regcache_sync().
> 
> Signed-off-by: Jiada Wang <jiada_wang@mentor.com>
> ---

Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>

Thanks,
Charles
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web