Skip to content
Commit 8181eede authored by Michael Hope's avatar Michael Hope Committed by Anas Nashif
Browse files

drivers: spi: ensure the first byte has been loaded in the TX fast path



The SAM0 has a data register and a shift register.  Data that is
written to the data register is transferred to the shift register by
the peripheral.

On the SAMD51, the CPU is fast enough that the first data write hasn't
been transferred to the shift register by the time the next data write
occurs, causing the second write to be dropped, causing the receiver
to wait forever.

Fix by spinning until the data register is empty.

Signed-off-by: default avatarMichael Hope <mlhx@google.com>
parent dcf64c93
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment