serial: 8250_dw: allow lower reference frequencies
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 22 Sep 2015 15:54:12 +0000 (18:54 +0300)
committerStephen Boyd <sboyd@codeaurora.org>
Fri, 2 Oct 2015 18:29:49 +0000 (11:29 -0700)
We have couple of standard but rare used baudrates which are not supported by
1,8432MHz reference frequency. Besides that user can potentially ask for any
baudrate (via BOTHER flag) and we currently don't fully support that. Since
clk-fractional-divider is moved to use rational best approximation for
reference frequency we may amend the driver to support whatever user wants.

Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/tty/serial/8250/8250_dw.c

index 06324f1..df3eddf 100644 (file)
@@ -224,10 +224,6 @@ static void dw8250_set_termios(struct uart_port *p, struct ktermios *termios,
        if (IS_ERR(d->clk) || !old)
                goto out;
 
-       /* Not requesting clock rates below 1.8432Mhz */
-       if (baud < 115200)
-               baud = 115200;
-
        clk_disable_unprepare(d->clk);
        rate = clk_round_rate(d->clk, baud * 16);
        ret = clk_set_rate(d->clk, rate);