Skip to content
Snippets Groups Projects
Commit f1fc8b71 authored by Mikhail Vanyulin's avatar Mikhail Vanyulin
Browse files

tty:serial:imx: fix uart latency for rs485 on mx6ull


There is too big latency (up to 3ms) in rs485 mode on mx6ull during turning
To receive between disabling transmitter and enabling receiver.
It happens because of 3 sequential iterations of calling stop_tx (2 from irq
thread and 1 from hrtimer).
Irq thread has great latency on the slow mx6ull and RS485 is sensitive to
timings.
The patch involves hrtimer for calling stop_tx during waiting FIFO empty
in addition to existing calls from softirq to speed up the process.

To make new code apply only for specific devices and not to affect other
boards, a "rs485-has-rts-latency" property for uart device tree node was
added.

Signed-off-by: default avatarMikhail Vanyulin <mikhail.vanyulin@rtsoft.de>
parent ae892ce1
No related branches found
No related tags found
1 merge request!319tty:serial:imx: fix uart latency for rs485 on mx6ull
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment