Skip to contentSkip to conversation

ARM: S5PV210: Fix early uart output in fifo mode

PATCH Applied Alexey Galakhov 2 participants 2 messages Feb 8, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: S5PV210: Fix early uart output in fifo mode

Enabling UART FIFO in bootloader caused the kernel infinite loop on S5PV210 due to uninitialized fifo_max and fifo_mask global variables. This patch adds the correct initialization.

---
 arch/arm/mach-s5pv210/include/mach/uncompress.h |    2 ++
 1 file changed, 2 insertions(+)
arch/arm/mach-s5pv210/include/mach/uncompress.h +2 -0
index 08ff2fd..ef977ea 100644
@@ -19,6 +19,8 @@
 static void arch_detect_cpu(void)
 {
 	/* we do not need to do any cpu detection here at the moment. */
+	fifo_mask = S5PV210_UFSTAT_TXMASK;
+	fifo_max = 63 << S5PV210_UFSTAT_TXSHIFT;
 }
 
 #endif /* __ASM_ARCH_UNCOMPRESS_H */
Signature · 1 line
1.7.10.4
Applied
#1 lore raw
Quoted 25 lines · Alexey Galakhov

Enabling UART FIFO in bootloader caused the kernel infinite loop on S5PV210 due to uninitialized fifo_max and fifo_mask global variables. This patch adds the correct initialization.

---
 arch/arm/mach-s5pv210/include/mach/uncompress.h |    2 ++
 1 file changed, 2 insertions(+)
arch/arm/mach-s5pv210/include/mach/uncompress.h +2 -1
index 08ff2fd..ef977ea 100644
@@ -19,6 +19,8 @@
 static void arch_detect_cpu(void)
 {
 	/* we do not need to do any cpu detection here at the moment. */
+	fifo_mask = S5PV210_UFSTAT_TXMASK;
+	fifo_max = 63 << S5PV210_UFSTAT_TXSHIFT;
 }
 
 #endif /* __ASM_ARCH_UNCOMPRESS_H */
--
Quoted 1 line

1.7.10.4

Applied, thanks.

- Kukjin