* [PATCH] fix reregistering of serial console
@ 2014-07-02 16:09 Waldemar Brodkorb
2014-07-02 17:16 ` Florian Fainelli
0 siblings, 1 reply; 2+ messages in thread
From: Waldemar Brodkorb @ 2014-07-02 16:09 UTC (permalink / raw)
To: Linux MIPS Mailing List; +Cc: Geert Uytterhoeven, linux-kernel, florian
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 <wbx@openadk.org>
---
arch/mips/rb532/devices.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/mips/rb532/devices.c b/arch/mips/rb532/devices.c
index 3af00b2..ba61268 100644
--- a/arch/mips/rb532/devices.c
+++ b/arch/mips/rb532/devices.c
@@ -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,
--
1.7.10.4
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] fix reregistering of serial console
2014-07-02 16:09 [PATCH] fix reregistering of serial console Waldemar Brodkorb
@ 2014-07-02 17:16 ` Florian Fainelli
0 siblings, 0 replies; 2+ messages in thread
From: Florian Fainelli @ 2014-07-02 17:16 UTC (permalink / raw)
To: Waldemar Brodkorb
Cc: Linux MIPS Mailing List, Geert Uytterhoeven, linux-kernel
2014-07-02 9:09 GMT-07:00 Waldemar Brodkorb <wbx@openadk.org>:
> Runtime tested on Mikrotik RB532 board.
> Thanks goes to Geert Uytterhoeven for the explanation of the problem.
The subject should be something like "MIPS: rb532: fix reregistering
of serial console" to be consistent with the other changes.
>
> "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 <wbx@openadk.org>
Reviewed-by: Florian Fainelli <florian@openwrt.org>
Thanks!
> ---
> arch/mips/rb532/devices.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/mips/rb532/devices.c b/arch/mips/rb532/devices.c
> index 3af00b2..ba61268 100644
> --- a/arch/mips/rb532/devices.c
> +++ b/arch/mips/rb532/devices.c
> @@ -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,
> --
> 1.7.10.4
>
>
--
Florian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-07-02 17:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-02 16:09 [PATCH] fix reregistering of serial console Waldemar Brodkorb
2014-07-02 17:16 ` Florian Fainelli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®