All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] mfd: wm8994: declare dc servo register for wm8958 as volatile
@ 2014-08-13 15:27 Nikesh Oswal
  2014-08-14  8:37   ` Charles Keepax
  0 siblings, 1 reply; 3+ messages in thread
From: Nikesh Oswal @ 2014-08-13 15:27 UTC (permalink / raw)
  To: broonie, lgirdwood; +Cc: perex, tiwai, alsa-devel, linux-kernel, patches

DC Servo register 57h holds the DC offset value after the hardware has
completed the DC Servo Correction, so declare this register as volatile
because it is changed by the hardware.

Signed-off-by: Nikesh Oswal <nikesh@opensource.wolfsonmicro.com>
---
 drivers/mfd/wm8994-regmap.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mfd/wm8994-regmap.c b/drivers/mfd/wm8994-regmap.c
index 2fbce9c..fa1630d 100644
--- a/drivers/mfd/wm8994-regmap.c
+++ b/drivers/mfd/wm8994-regmap.c
@@ -1169,6 +1169,7 @@ static bool wm8958_volatile_register(struct device *dev, unsigned int reg)
 	case WM8958_FW_MINOR_0:
 	case WM8958_FW_PATCH_1:
 	case WM8958_FW_PATCH_0:
+	case WM8994_DC_SERVO_4:
 		return true;
 	default:
 		return wm8994_volatile_register(dev, reg);
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] mfd: wm8994: declare dc servo register for wm8958 as volatile
  2014-08-13 15:27 [PATCH v2] mfd: wm8994: declare dc servo register for wm8958 as volatile Nikesh Oswal
@ 2014-08-14  8:37   ` Charles Keepax
  0 siblings, 0 replies; 3+ messages in thread
From: Charles Keepax @ 2014-08-14  8:37 UTC (permalink / raw)
  To: Nikesh Oswal
  Cc: broonie, lgirdwood, tiwai, alsa-devel, patches, linux-kernel, perex

On Wed, Aug 13, 2014 at 04:27:29PM +0100, Nikesh Oswal wrote:
> DC Servo register 57h holds the DC offset value after the hardware has
> completed the DC Servo Correction, so declare this register as volatile
> because it is changed by the hardware.
> 
> Signed-off-by: Nikesh Oswal <nikesh@opensource.wolfsonmicro.com>
> ---
>  drivers/mfd/wm8994-regmap.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/mfd/wm8994-regmap.c b/drivers/mfd/wm8994-regmap.c
> index 2fbce9c..fa1630d 100644
> --- a/drivers/mfd/wm8994-regmap.c
> +++ b/drivers/mfd/wm8994-regmap.c
> @@ -1169,6 +1169,7 @@ static bool wm8958_volatile_register(struct device *dev, unsigned int reg)
>  	case WM8958_FW_MINOR_0:
>  	case WM8958_FW_PATCH_1:
>  	case WM8958_FW_PATCH_0:
> +	case WM8994_DC_SERVO_4:

Looking at this again it looks like this should actually be in
wm8994_volatile_register as some revs of the wm8994 use this
register as well as the 8958 for the servo readback.

Then if you update the other patch to use this register for
dsc_readback_mode = 1, then once we have a confirmation
from hardware I think both of these patches are good to go.

Thanks,
Charles

>  		return true;
>  	default:
>  		return wm8994_volatile_register(dev, reg);
> -- 
> 1.7.9.5
> 
> _______________________________________________
> patches mailing list
> patches@opensource.wolfsonmicro.com
> http://opensource.wolfsonmicro.com/cgi-bin/mailman/listinfo/patches

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] mfd: wm8994: declare dc servo register for wm8958 as volatile
@ 2014-08-14  8:37   ` Charles Keepax
  0 siblings, 0 replies; 3+ messages in thread
From: Charles Keepax @ 2014-08-14  8:37 UTC (permalink / raw)
  To: Nikesh Oswal; +Cc: alsa-devel, tiwai, patches, linux-kernel, lgirdwood, broonie

On Wed, Aug 13, 2014 at 04:27:29PM +0100, Nikesh Oswal wrote:
> DC Servo register 57h holds the DC offset value after the hardware has
> completed the DC Servo Correction, so declare this register as volatile
> because it is changed by the hardware.
> 
> Signed-off-by: Nikesh Oswal <nikesh@opensource.wolfsonmicro.com>
> ---
>  drivers/mfd/wm8994-regmap.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/mfd/wm8994-regmap.c b/drivers/mfd/wm8994-regmap.c
> index 2fbce9c..fa1630d 100644
> --- a/drivers/mfd/wm8994-regmap.c
> +++ b/drivers/mfd/wm8994-regmap.c
> @@ -1169,6 +1169,7 @@ static bool wm8958_volatile_register(struct device *dev, unsigned int reg)
>  	case WM8958_FW_MINOR_0:
>  	case WM8958_FW_PATCH_1:
>  	case WM8958_FW_PATCH_0:
> +	case WM8994_DC_SERVO_4:

Looking at this again it looks like this should actually be in
wm8994_volatile_register as some revs of the wm8994 use this
register as well as the 8958 for the servo readback.

Then if you update the other patch to use this register for
dsc_readback_mode = 1, then once we have a confirmation
from hardware I think both of these patches are good to go.

Thanks,
Charles

>  		return true;
>  	default:
>  		return wm8994_volatile_register(dev, reg);
> -- 
> 1.7.9.5
> 
> _______________________________________________
> patches mailing list
> patches@opensource.wolfsonmicro.com
> http://opensource.wolfsonmicro.com/cgi-bin/mailman/listinfo/patches

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-08-14  8:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-13 15:27 [PATCH v2] mfd: wm8994: declare dc servo register for wm8958 as volatile Nikesh Oswal
2014-08-14  8:37 ` Charles Keepax
2014-08-14  8:37   ` Charles Keepax

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.