Skip to content
Snippets Groups Projects
Commit dff01094 authored by Anatolij Gustschin's avatar Anatolij Gustschin Committed by Albert Aribaud
Browse files

SPI: mxc_spi: fix swapping bug and add missing swapping in unaligned rx case


We need to shift only one time in each cycle in the swapping loop
for unaligned tx case. Currently two byte shift operations are
performed in each loop cycle causing zero gaps in the transmited
data, so not all data scheduled for transmition is actually
transmited.

The proper swapping in unaligned rx case is missing, so add it
as we need to put the received data into the rx buffer in the
correct byte order.

Signed-off-by: default avatarAnatolij Gustschin <agust@denx.de>
Tested-by: default avatarStefano Babic <sbabic@denx.de>
parent c9d59c7f
No related branches found
No related tags found
No related merge requests found
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