提交 18d8519d 编写于 作者: A Alexey Pelykh 提交者: Greg Kroah-Hartman

OMAP/serial: Fix Mode13 vs Mode16 priority

Make Mode16 more preferred than Mode13, to match TRM baudrates table.
Signed-off-by: NAlexey Pelykh <alexey.pelykh@gmail.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Felipe Balbi <balbi@ti.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 4250b5d9
......@@ -247,7 +247,7 @@ serial_omap_baud_is_mode16(struct uart_port *port, unsigned int baud)
if(baudAbsDiff16 < 0)
baudAbsDiff16 = -baudAbsDiff16;
return (baudAbsDiff13 > baudAbsDiff16);
return (baudAbsDiff13 >= baudAbsDiff16);
}
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册