summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/serial/fsl-imx-uart.txt
diff options
context:
space:
mode:
authorEd Blake <ed.blake@sondrel.com>2017-09-26 11:40:03 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-04 10:17:27 +0200
commitde9e33bdfa22e607a88494ff21e9196d00bf4550 (patch)
tree3fcb9b986e8a22915c88c7cd33206db3389978eb /Documentation/devicetree/bindings/serial/fsl-imx-uart.txt
parent6263368c5b0b758d8639cad37a2a6493c9370425 (diff)
serial: 8250_dw: Improve clock rate setting
Currently dw8250_set_termios sets the input clock to the nearest achievable rate to baudx16. If necessary, the input clock is then divided down to baudx16 using an integer divider within the UART device, with the divisor calculated in the 8250 core driver. However, the clock rate set by dw8250_set_termios and subsequently divided down could be considerably different to the target baudx16 rate, resulting in incorrect operation. This patch fixes this by iteratively searching for an input clock rate that is within +/-1.6% of an integer multiple of the target baudx16 rate. Signed-off-by: Ed Blake <ed.blake@sondrel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/devicetree/bindings/serial/fsl-imx-uart.txt')
0 files changed, 0 insertions, 0 deletions