Skip to contentSkip to conversation

MIPS: rb532: fix reregistering of serial console

PATCH New Waldemar Brodkorb 1 participant 1 message Jul 3, 2014 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 MIPS: rb532: fix reregistering of serial console

Runtime tested on Mikrotik RB532 board.
Thanks goes to Geert Uytterhoeven for the explanation of the problem.

"I'm afraid this is not gonna help. When the port is unregistered, its type will be reset to PORT_UNKNOWN.
So before registering it again, its type must be set again the actual serial driver, cfr. the change to of_serial.c."

---
 arch/mips/rb532/devices.c |    1 +
 1 file changed, 1 insertion(+)
arch/mips/rb532/devices.c +1 -0
index 3af00b2..ba61268 100644
@@ -223,6 +223,7 @@ static struct platform_device rb532_wdt = {
 
 static struct plat_serial8250_port rb532_uart_res[] = {
 	{
+		.type           = PORT_16550A,
 		.membase	= (char *)KSEG1ADDR(REGBASE + UART0BASE),
 		.irq		= UART0_IRQ,
 		.regshift	= 2,
Signature · 1 line
1.7.10.4