]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
serial: imx: Restore original RXTL for console to fix data loss
authorFabio Estevam <festevam@gmail.com>
Thu, 19 Jun 2025 11:46:17 +0000 (08:46 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 6 Jul 2025 08:58:01 +0000 (10:58 +0200)
commitea5838934d73322b7ca337b31999b4e384040c04
treeb0c1bfb52dac28e495e64e55526d0556b65e5886
parentf8530462a349b8d22772a83db2a338867ee3b86c
serial: imx: Restore original RXTL for console to fix data loss

commit f23c52aafb1675ab1d1f46914556d8e29cbbf7b3 upstream.

Commit 7a637784d517 ("serial: imx: reduce RX interrupt frequency")
introduced a regression on the i.MX6UL EVK board. The issue can be
reproduced with the following steps:

- Open vi on the board.
- Paste a text file (~150 characters).
- Save the file, then repeat the process.
- Compare the sha256sum of the saved files.

The checksums do not match due to missing characters or entire lines.

Fix this by restoring the RXTL value to 1 when the UART is used as a
console.

This ensures timely RX interrupts and reliable data reception in console
mode.

With this change, pasted content is saved correctly, and checksums are
always consistent.

Cc: stable <stable@kernel.org>
Fixes: 7a637784d517 ("serial: imx: reduce RX interrupt frequency")
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Stefan Wahren <wahrenst@gmx.net>
Link: https://lore.kernel.org/r/20250619114617.2791939-1-festevam@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c