1 From 6d212d8e86fb4221bd91b9266b7567ee2b83bd01 Mon Sep 17 00:00:00 2001
2 From: Mark Brown <broonie@opensource.wolfsonmicro.com>
3 Date: Fri, 29 Oct 2010 15:41:17 -0700
4 Subject: ASoC: Remove volatility from WM8900 POWER1 register
6 From: Mark Brown <broonie@opensource.wolfsonmicro.com>
8 commit 6d212d8e86fb4221bd91b9266b7567ee2b83bd01 upstream.
10 Not all bits can be read back from POWER1 so avoid corruption when using
11 a read/modify/write cycle by marking it non-volatile - the only thing we
12 read back from it is the chip revision which has diagnostic value only.
13 We can re-add later but that's a more invasive change than is suitable
16 Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
17 Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
18 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
21 sound/soc/codecs/wm8900.c | 6 ------
22 1 file changed, 6 deletions(-)
24 --- a/sound/soc/codecs/wm8900.c
25 +++ b/sound/soc/codecs/wm8900.c
26 @@ -188,7 +188,6 @@ static int wm8900_volatile_register(unsi
30 - case WM8900_REG_POWER1:
34 @@ -1236,11 +1235,6 @@ static __devinit int wm8900_i2c_probe(st
38 - /* Read back from the chip */
39 - reg = snd_soc_read(codec, WM8900_REG_POWER1);
40 - reg = (reg >> 12) & 0xf;
41 - dev_info(&i2c->dev, "WM8900 revision %d\n", reg);
45 /* Turn the chip on */