diff options
author | Takashi Yoshii <takashi.yoshii.zj@renesas.com> | 2012-11-15 20:52:22 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-15 21:02:37 -0500 |
commit | 4ffc3cdb642823ebee84538addac7cde1174e314 (patch) | |
tree | 327e06f584da742e639852b7686a2e54b21711a7 | |
parent | 0174e5ca82ba6bd62ab870e5781b72bd5397f1c3 (diff) |
serial: sh-sci: fix condition test to set SCBRR
SCBRR == 0 is valid value (divide by 1).
Signed-off-by: Takashi Yoshii <takashi.yoshii.zj@renesas.com>
Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi.px@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/tty/serial/sh-sci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index 8aade611d1a8..6c1fddb0e20a 100644 --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c | |||
@@ -1854,7 +1854,7 @@ static void sci_set_termios(struct uart_port *port, struct ktermios *termios, | |||
1854 | dev_dbg(port->dev, "%s: SMR %x, t %x, SCSCR %x\n", __func__, smr_val, t, | 1854 | dev_dbg(port->dev, "%s: SMR %x, t %x, SCSCR %x\n", __func__, smr_val, t, |
1855 | s->cfg->scscr); | 1855 | s->cfg->scscr); |
1856 | 1856 | ||
1857 | if (t > 0) { | 1857 | if (t >= 0) { |
1858 | if (t >= 256) { | 1858 | if (t >= 256) { |
1859 | serial_port_out(port, SCSMR, (serial_port_in(port, SCSMR) & ~3) | 1); | 1859 | serial_port_out(port, SCSMR, (serial_port_in(port, SCSMR) & ~3) | 1); |
1860 | t >>= 2; | 1860 | t >>= 2; |