Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1507098 > unrolled thread
| Started by | Colin King <colin.king@canonical.com> |
|---|---|
| First post | 2016-10-24 13:10 +0200 |
| Last post | 2016-10-24 13:10 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH] ARM: OMAP2+: PRM: initialize en_uart4_mask and grpsel_uart4_mask Colin King <colin.king@canonical.com> - 2016-10-24 13:10 +0200
| From | Colin King <colin.king@canonical.com> |
|---|---|
| Date | 2016-10-24 13:10 +0200 |
| Subject | [PATCH] ARM: OMAP2+: PRM: initialize en_uart4_mask and grpsel_uart4_mask |
| Message-ID | <svLiG-6PQ-37@gated-at.bofh.it> |
From: Colin Ian King <colin.king@canonical.com>
In the case where has_uart4 is false, en_uart4_mask and grpsel_uart4_mask
are not initialized and so any garbage value is being logically or'd into
the write of PM_WKEN and OMAP3430_PM_MPUGRPSEL. Fix this by initializing
these masks to zero.
Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
arch/arm/mach-omap2/prm3xxx.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/mach-omap2/prm3xxx.c b/arch/arm/mach-omap2/prm3xxx.c
index 62680aa..718981b 100644
--- a/arch/arm/mach-omap2/prm3xxx.c
+++ b/arch/arm/mach-omap2/prm3xxx.c
@@ -319,6 +319,9 @@ void __init omap3_prm_init_pm(bool has_uart4, bool has_iva)
if (has_uart4) {
en_uart4_mask = OMAP3630_EN_UART4_MASK;
grpsel_uart4_mask = OMAP3630_GRPSEL_UART4_MASK;
+ } else {
+ en_uart4_mask = 0;
+ grpsel_uart4_mask = 0;
}
/* Enable wakeups in PER */
--
2.9.3
Back to top | Article view | linux.kernel
csiph-web