From: Antony Pavlov <antonynpavlov@gmail.com>
To: Alban Bedel <albeu@free.fr>
Cc: linux-mips@linux-mips.org
Subject: Re: MIPS: ath79: TP-LINK WR1043ND: uart clk issue
Date: Fri, 22 Jan 2016 00:39:38 +0300 [thread overview]
Message-ID: <20160122003938.2e689f07cbe360be15381277@gmail.com> (raw)
In-Reply-To: <20160121123647.5b08e7360103768755488433@gmail.com>
On Thu, 21 Jan 2016 12:36:47 +0300
Antony Pavlov <antonynpavlov@gmail.com> wrote:
A thousand apologies!
It looks like there is no uart clk issue at all.
I have to use "console=ttyS0,115200" instead of just "console=ttyS0" in kernel cmdline
to make console works.
> Hi!
>
> I have tried to run linux on TP-LINK WR1043ND v1.8.
>
> I use branch master from git://git.linux-mips.org/pub/scm/ralf/linux
>
> I see a problem with UART speed setup. There is no UART output after
> serial port initialization. Here is the last correct linux output:
>
> Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
> console [ttyS0] disabled
> 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 12500000) is a 8250
>
>
> I can disable UART speed setup in 8250 driver:
>
> --- a/drivers/tty/serial/8250/8250_port.c
> +++ b/drivers/tty/serial/8250/8250_port.c
> @@ -2208,6 +2208,8 @@ static void serial8250_set_divisor(struct uart_port *port, unsigned int baud,
> {
> struct uart_8250_port *up = up_to_u8250p(port);
>
> + return;
> +
> /* Workaround to enable 115200 baud on OMAP1510 internal ports */
> if (is_omap1510_8250(up)) {
> if (baud == 115200) {
>
> With this very very dirty hack linux works fine.
>
> I suppose there is a problem in arch/mips/ath79/clock.c
>
> I have tryed to cherry-pick your 'MIPS: ath79: Fix the ar913x reference clock rate'
> and 'MIPS: ath79: Fix the ar724x clock calculation' commits from
> your github ath79 branch at https://github.com/AlbanBedel/linux/tree/ath79
> but these patches don't help me.
>
> Could you please try to reproduce the problem?
>
> --
> Best regards,
> Antony Pavlov
--
--
Best regards,
Antony Pavlov
prev parent reply other threads:[~2016-01-21 21:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-21 9:36 MIPS: ath79: TP-LINK WR1043ND: uart clk issue Antony Pavlov
2016-01-21 21:39 ` Antony Pavlov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160122003938.2e689f07cbe360be15381277@gmail.com \
--to=antonynpavlov@gmail.com \
--cc=albeu@free.fr \
--cc=linux-mips@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox