mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH V2] mfd: da9052: Fix volatile register definition ommissions
@ 2014-02-06 17:33 Anthony Olech <anthony.olech.opensource@diasemi.com>
  2014-02-11 16:27 ` Lee Jones
  0 siblings, 1 reply; 2+ messages in thread
From: Anthony Olech <anthony.olech.opensource@diasemi.com> @ 2014-02-06 17:33 UTC (permalink / raw)
  To: Samuel Ortiz, Lee Jones; +Cc: linux-kernel, David Dajun Chen

Three of the PMIC registers have some bits that are changed
autonomously by the PMIC itself (some time) after being set
by some component driver of the DA9052 PMIC and hence they
need to be marked as volatile so that the regmap API will
not cache their values.

Signed-off-by: Anthony Olech <anthony.olech.opensource@diasemi.com>
Acked-by: David Dajun Chen <david.chen@diasemi.com>
---

This patch is relative to linux-next repository tag next-20140206

The problem was detected whilst running a scripted set of functional
regression tests whilst investigating a different problem.

This patch has been test compiled on an amd64 server for both x86
and arm targets.

This patch has been spot verified using an SMDK6410 platform
fly-wired to a Dialog da9053 EVB.

The bug that this patch fixes affects two components of DA9052 namely:

WATCHDOG - the first kick will work but sebsequent ones will not
           thus the watchdog will timeout at 2 x interval.

REGULATORS - the first change to any DA9052/DA9053  BUCK voltage
             will be actioned, but sebsequent ones will not.

 drivers/mfd/da9052-core.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/mfd/da9052-core.c b/drivers/mfd/da9052-core.c
index 25838f1..e8af816 100644
--- a/drivers/mfd/da9052-core.c
+++ b/drivers/mfd/da9052-core.c
@@ -279,6 +279,9 @@ static bool da9052_reg_volatile(struct device *dev, unsigned int reg)
 	case DA9052_EVENT_B_REG:
 	case DA9052_EVENT_C_REG:
 	case DA9052_EVENT_D_REG:
+	case DA9052_CONTROL_B_REG:
+	case DA9052_CONTROL_D_REG:
+	case DA9052_SUPPLY_REG:
 	case DA9052_FAULTLOG_REG:
 	case DA9052_CHG_TIME_REG:
 	case DA9052_ADC_RES_L_REG:
-- 
end-of-patch for mfd: da9052: Fix volatile register definition ommissions V2


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

* Re: [PATCH V2] mfd: da9052: Fix volatile register definition ommissions
  2014-02-06 17:33 [PATCH V2] mfd: da9052: Fix volatile register definition ommissions Anthony Olech <anthony.olech.opensource@diasemi.com>
@ 2014-02-11 16:27 ` Lee Jones
  0 siblings, 0 replies; 2+ messages in thread
From: Lee Jones @ 2014-02-11 16:27 UTC (permalink / raw)
  To: Anthony Olech <anthony.olech.opensource@diasemi.com>
  Cc: Samuel Ortiz, linux-kernel, David Dajun Chen

On Thu, 06 Feb 2014, Anthony Olech <anthony.olech.opensource@diasemi.com> wrote:

> Three of the PMIC registers have some bits that are changed
> autonomously by the PMIC itself (some time) after being set
> by some component driver of the DA9052 PMIC and hence they
> need to be marked as volatile so that the regmap API will
> not cache their values.
> 
> Signed-off-by: Anthony Olech <anthony.olech.opensource@diasemi.com>
> Acked-by: David Dajun Chen <david.chen@diasemi.com>
> ---
> 
> This patch is relative to linux-next repository tag next-20140206
> 
> The problem was detected whilst running a scripted set of functional
> regression tests whilst investigating a different problem.
> 
> This patch has been test compiled on an amd64 server for both x86
> and arm targets.
> 
> This patch has been spot verified using an SMDK6410 platform
> fly-wired to a Dialog da9053 EVB.
> 
> The bug that this patch fixes affects two components of DA9052 namely:
> 
> WATCHDOG - the first kick will work but sebsequent ones will not
>            thus the watchdog will timeout at 2 x interval.
> 
> REGULATORS - the first change to any DA9052/DA9053  BUCK voltage
>              will be actioned, but sebsequent ones will not.
> 
>  drivers/mfd/da9052-core.c |    3 +++
>  1 file changed, 3 insertions(+)

Applied, thanks.

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

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

end of thread, other threads:[~2014-02-11 16:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-06 17:33 [PATCH V2] mfd: da9052: Fix volatile register definition ommissions Anthony Olech <anthony.olech.opensource@diasemi.com>
2014-02-11 16:27 ` Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome