[linux-yocto] [PATCH 09/14] drivers/power/reset: Fix Axxia Retention Reset Issue
Daniel Dragomir
daniel.dragomir at windriver.com
Mon Dec 4 02:57:59 PST 2017
From: Marek Majtyka <marekx.majtyka at intel.com>
Retention reset trigger shall only update syscon scratch register
particular flag instead of overwriting it. Some fatal edac errors
might be lost.
Signed-off-by: Marek Majtyka <marekx.majtyka at intel.com>
---
drivers/power/reset/axxia-reset.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/power/reset/axxia-reset.c b/drivers/power/reset/axxia-reset.c
index 195d7cd..60afa8e 100644
--- a/drivers/power/reset/axxia-reset.c
+++ b/drivers/power/reset/axxia-reset.c
@@ -54,7 +54,7 @@ initiate_retention_reset(void)
return;
/* set retention reset bit in pscratch */
- regmap_write(syscon, SC_PSCRATCH, 1);
+ regmap_update_bits(syscon, SC_PSCRATCH, 1, 1);
/* trap into secure monitor to do the reset */
#ifdef CONFIG_POWER_RESET_AXXIA_DDR_RETENTION
--
2.7.4
More information about the linux-yocto
mailing list