serial: sh-sci: Add calculation recive margin for HSCIF
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Mon, 14 Jul 2014 07:10:00 +0000 (16:10 +0900)
committerSimon Horman <horms@verge.net.au>
Fri, 5 Dec 2014 00:24:20 +0000 (09:24 +0900)
commit9a00904c2339686360606c809ae13ef8ba923827
treee1f6d035cff9020c7db6742ef2312c948eef10dd
parent2994b6b02730dd939072d5c0e33a41396794755e
serial: sh-sci: Add calculation recive margin for HSCIF

When the error of the same bit rate is detected, we will need to select
the recive margin is large. Current code holds the minimum error, it does
not have to check the recive margin. This adds this calculation.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 730c4e782c039caf40b467c35f595c005e94220c)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/tty/serial/sh-sci.c