[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210727101034.32148-1-tony@atomide.com>
Date: Tue, 27 Jul 2021 13:10:33 +0300
From: Tony Lindgren <tony@...mide.com>
To: Krzysztof Kozlowski <krzysztof.kozlowski@...onical.com>
Cc: Roger Quadros <rogerq@...com>, linux-kernel@...r.kernel.org,
linux-omap@...r.kernel.org, Roger Quadros <rogerq@...nel.org>
Subject: [PATCH 1/2] memory: omap-gpmc: Clear GPMC_CS_CONFIG7 register on restore if unused
We want to clear any unused GPMC_CS_CONFIG7 register on restore to
ensure unused chip selects are not enabled.
Cc: Roger Quadros <rogerq@...nel.org>
Signed-off-by: Tony Lindgren <tony@...mide.com>
---
drivers/memory/omap-gpmc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/memory/omap-gpmc.c b/drivers/memory/omap-gpmc.c
--- a/drivers/memory/omap-gpmc.c
+++ b/drivers/memory/omap-gpmc.c
@@ -2595,6 +2595,8 @@ void omap3_gpmc_restore_context(void)
gpmc_context.cs_context[i].config6);
gpmc_cs_write_reg(i, GPMC_CS_CONFIG7,
gpmc_context.cs_context[i].config7);
+ } else {
+ gpmc_cs_write_reg(i, GPMC_CS_CONFIG7, 0);
}
}
}
--
2.32.0
Powered by blists - more mailing lists