From: Marek Majtyka <marekx.majt...@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.majt...@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

-- 
_______________________________________________
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto

Reply via email to