Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tlsr82/serial: clear uart tx index when uart_reset called.
Otherwise, after the rx error occur, the tx output will be out of sequence, for example: normal log: [ 30.163000] 12345678abcdefgh [ 30.666000] 12345678abcdefgh [ 31.169000] 12345678abcdefgh [ 31.672000] 12345678abcdefgh [ 32.175000] 12345678abcdefgh [ 32.678000] 12345678abcdefgh [ 33.181000] 12345678abcdefgh error log: he 7 .20]0003 127456c8abgdefch gde [6.707002] 16345b78afcde fcde fghe10010] 5234a678ebcd 77 713 00]41238567dabchefgd che 7 .21]0003 127456c8abgdefch gde [8.709002] 16345b78afcde fcde Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
- Loading branch information
1 parent
f286012
commit 282c410
Showing
1 changed file
with
35 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters