Skip to content
Commit eac3ba2b authored by Dawid Niedzwiecki's avatar Dawid Niedzwiecki Committed by Carles Cufí
Browse files

mgmt: ec_host_cmd: remove timeout for UART callback



Do not use timeout for UART callback. The UART IRQ bases on the IDLE
line, so waiting for additional bytes is not necessary and it introduce
additional latency.

Another issue with the timeout is that the UART drivers use sysworkq for
implementing timeout. The sysworkq thread may have lower prio than the
host command thread, which may cause a delay in calling the UART
callback, which gives the semaphore to the HC handler.

Signed-off-by: default avatarDawid Niedzwiecki <dawidn@google.com>
parent 7aa34e64
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment