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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user