]> git.baikalelectronics.ru Git - 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Nov 2021 17:26:32 +0000 (18:26 +0100)
commitc9505f8bf4af4ffbd94aed2f7a1522cf39fb0795
treeaa13e472cbfa2ebd11e1f2dacd5da0a90cf98f47
parent0db83a73f7b86834e0a247b6fefb648fc3ffaa2a
serial: tegra: Change lower tolerance baud rate limit for tegra20 and tegra30

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: 8b32d9ebd3f7 ("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>
drivers/tty/serial/serial-tegra.c