Skip to content
Commit 2ac3a852 authored by Daniel Leung's avatar Daniel Leung Committed by Johan Hedberg
Browse files

soc: mec1501: wait for UART FIFO clear before deep sleep



It is observed that after each test, weird characters appear on
console. This problem goes away if deep sleep is disabled.
The theory is that the CPU runs to deep sleep (_sys_suspend())
faster than UART can shift all the bits out. If we spin wait
for UART FIFO to clear, this is no longer an issue. This is
circumstantial evidence to the theory. So for now, put in
a workaround to spin wait for UART FIFO to clear before
going into deep sleep.

Relates to #22885

Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent 67e43a21
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment