MIPS: RB532: Fix reregistering of serial console
authorWaldemar Brodkorb <[email protected]>
Thu, 3 Jul 2014 14:17:53 +0000 (16:17 +0200)
committerRalf Baechle <[email protected]>
Wed, 30 Jul 2014 11:27:51 +0000 (13:27 +0200)
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."

Signed-off-by: Waldemar Brodkorb <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Cc: Linux MIPS Mailing List <[email protected]>
Cc: [email protected]
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/7241/
Signed-off-by: Ralf Baechle <[email protected]>
arch/mips/rb532/devices.c

index 3af00b2a26ee97a7b98cfd95f8704e97e3383734..ba612687b8f188ce8906c001833c7ba12826f8e4 100644 (file)
@@ -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,