]> git.proxmox.com Git - mirror_ubuntu-impish-kernel.git/commit
serial: tegra: Change lower tolerance baud rate limit for tegra20 and tegra30
authorPatrik John <patrik.john@u-blox.com>
Tue, 23 Nov 2021 13:27:38 +0000 (14:27 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Fri, 18 Feb 2022 11:29:09 +0000 (12:29 +0100)
commitaa541f8090e1ed4e41a201960da4f0f50abfc32b
treefae57234bb32488858b0ac166d74469100ff2022
parent3fad52b0ae7a5efe1ee00ad6f01bda15ac8456e7
serial: tegra: Change lower tolerance baud rate limit for tegra20 and tegra30

BugLink: https://bugs.launchpad.net/bugs/1956791
commit b40de7469ef135161c80af0e8c462298cc5dac00 upstream.

The current implementation uses 0 as lower limit for the baud rate
tolerance for tegra20 and tegra30 chips which causes isses on UART
initialization as soon as baud rate clock is lower than required even
when within the standard UART tolerance of +/- 4%.

This fix aligns the implementation with the initial commit description
of +/- 4% tolerance for tegra chips other than tegra186 and
tegra194.

Fixes: d781ec21bae6 ("serial: tegra: report clk rate errors")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Patrik John <patrik.john@u-blox.com>
Link: https://lore.kernel.org/r/sig.19614244f8.20211123132737.88341-1-patrik.john@u-blox.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/tty/serial/serial-tegra.c