serial: sh-sci: Support for HSCIF RX sampling point adjustment
authorUlrich Hecht <ulrich.hecht+renesas@gmail.com>
Wed, 4 Apr 2018 15:48:51 +0000 (17:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 08:08:18 +0000 (10:08 +0200)
commit63ba1e00f178a4483b473489cadc4eb52a77df2a
tree0c5c157f62ea8a446807e9d4a9d217085f670d9f
parent7678f4c20fa7670fcc23e2537a26543c5c6a7772
serial: sh-sci: Support for HSCIF RX sampling point adjustment

HSCIF has facilities that allow moving the RX sampling point by between
-8 and 7 sampling cycles (one sampling cycles equals 1/15 of a bit
by default) to improve the error margin in case of slightly mismatched
bit rates between sender and receiver.

This patch tries to determine if shifting the sampling point can improve
the error margin and will enable it if so.

Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sh-sci.c
drivers/tty/serial/sh-sci.h