spi: sunxi: fix tx buf

After a fifo length of data is sent to tx fifo, the tx buffer should be
offseted.

Do this offset after the transfer.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
This commit is contained in:
Icenowy Zheng
2017-05-23 22:56:04 +08:00
parent d3205f02ce
commit f03c1f5aea
+3
View File
@@ -273,6 +273,9 @@ static int sunxi_spi_xfer(struct udevice *dev, unsigned int bitlen,
}
len -= nbytes;
if (tx_buf)
tx_buf += nbytes;
}
if (flags & SPI_XFER_END)