Skip to content

Commit b40de74

Browse files
Patrik Johngregkh
authored andcommitted
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: d781ec2 ("serial: tegra: report clk rate errors") Cc: stable <[email protected]> Signed-off-by: Patrik John <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 0b993fc commit b40de74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/tty/serial/serial-tegra.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1506,7 +1506,7 @@ static struct tegra_uart_chip_data tegra20_uart_chip_data = {
15061506
.fifo_mode_enable_status = false,
15071507
.uart_max_port = 5,
15081508
.max_dma_burst_bytes = 4,
1509-
.error_tolerance_low_range = 0,
1509+
.error_tolerance_low_range = -4,
15101510
.error_tolerance_high_range = 4,
15111511
};
15121512

@@ -1517,7 +1517,7 @@ static struct tegra_uart_chip_data tegra30_uart_chip_data = {
15171517
.fifo_mode_enable_status = false,
15181518
.uart_max_port = 5,
15191519
.max_dma_burst_bytes = 4,
1520-
.error_tolerance_low_range = 0,
1520+
.error_tolerance_low_range = -4,
15211521
.error_tolerance_high_range = 4,
15221522
};
15231523

0 commit comments

Comments
 (0)