Commit f23c52a
serial: imx: Restore original RXTL for console to fix data loss
Commit 7a63778 ("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 <[email protected]>
Fixes: 7a63778 ("serial: imx: reduce RX interrupt frequency")
Signed-off-by: Fabio Estevam <[email protected]>
Reviewed-by: Stefan Wahren <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent d36f0e9 commit f23c52a
1 file changed
+12
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| 238 | + | |
238 | 239 | | |
239 | 240 | | |
240 | 241 | | |
| |||
1339 | 1340 | | |
1340 | 1341 | | |
1341 | 1342 | | |
| 1343 | + | |
1342 | 1344 | | |
1343 | 1345 | | |
1344 | 1346 | | |
| |||
1457 | 1459 | | |
1458 | 1460 | | |
1459 | 1461 | | |
1460 | | - | |
| 1462 | + | |
1461 | 1463 | | |
1462 | 1464 | | |
1463 | 1465 | | |
| |||
1482 | 1484 | | |
1483 | 1485 | | |
1484 | 1486 | | |
1485 | | - | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
1486 | 1493 | | |
1487 | 1494 | | |
1488 | 1495 | | |
| |||
1948 | 1955 | | |
1949 | 1956 | | |
1950 | 1957 | | |
1951 | | - | |
| 1958 | + | |
1952 | 1959 | | |
1953 | 1960 | | |
1954 | 1961 | | |
| |||
2040 | 2047 | | |
2041 | 2048 | | |
2042 | 2049 | | |
2043 | | - | |
| 2050 | + | |
2044 | 2051 | | |
2045 | 2052 | | |
2046 | 2053 | | |
| |||
2302 | 2309 | | |
2303 | 2310 | | |
2304 | 2311 | | |
2305 | | - | |
| 2312 | + | |
2306 | 2313 | | |
2307 | 2314 | | |
2308 | 2315 | | |
| |||
0 commit comments