From: Takashi Yoshii Date: Fri, 16 Nov 2012 01:52:22 +0000 (+0900) Subject: serial: sh-sci: fix condition test to set SCBRR X-Git-Tag: v3.8-rc1~177^2~50 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ffc3cdb642823ebee84538addac7cde1174e314;p=platform%2Fupstream%2Fkernel-adaptation-pc.git serial: sh-sci: fix condition test to set SCBRR SCBRR == 0 is valid value (divide by 1). Signed-off-by: Takashi Yoshii Signed-off-by: Shinya Kuribayashi Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index 8aade61..6c1fddb 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, dev_dbg(port->dev, "%s: SMR %x, t %x, SCSCR %x\n", __func__, smr_val, t, s->cfg->scscr); - if (t > 0) { + if (t >= 0) { if (t >= 256) { serial_port_out(port, SCSMR, (serial_port_in(port, SCSMR) & ~3) | 1); t >>= 2;