Commit 6d5ce1bd authored by Timo Herbrecher's avatar Timo Herbrecher Committed by Jagannadha Sutradharudu Teki
Browse files

spi: mxc_spi: Fix double incrementing read pointer for unaligned buffers

If dout buffer is not 32 bit-aligned or data to transmit is not multiple
of 32 bit the read data pointer is already incremented on single byte reads.
Signed-off-by: default avatarTimo Herbrecher <>
Signed-off-by: default avatarJagannadha Sutradharudu Teki <>
parent 21497ded
......@@ -255,8 +255,8 @@ int spi_xchg_single(struct spi_slave *slave, unsigned int bitlen,
} else {
data = *(u32 *)dout;
data = cpu_to_be32(data);
dout += 4;
dout += 4;
debug("Sending SPI 0x%x\n", data);
reg_write(&regs->txdata, data);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment