diff options
author | Amit Kumar Mahapatra | 2023-12-18 14:36:52 +0530 |
---|---|---|
committer | Mark Brown | 2024-01-23 13:28:05 +0000 |
commit | 633cd6fe6e1993ba80e0954c2db127a0b1a3e66f (patch) | |
tree | c35675d99e6e5a94fe200555d18aaf61a9fa4e1b /.rustfmt.toml | |
parent | e267a5b3ec59ce88d6be21078e2deb807ca3b436 (diff) |
spi: spi-cadence: Reverse the order of interleaved write and read operations
In the existing implementation, when executing interleaved write and read
operations in the ISR for a transfer length greater than the FIFO size,
the TXFIFO write precedes the RXFIFO read. Consequently, the initially
received data in the RXFIFO is pushed out and lost, leading to a failure
in data integrity. To address this issue, reverse the order of interleaved
operations and conduct the RXFIFO read followed by the TXFIFO write.
Fixes: 6afe2ae8dc48 ("spi: spi-cadence: Interleave write of TX and read of RX FIFO")
Signed-off-by: Amit Kumar Mahapatra <amit.kumar-mahapatra@amd.com>
Link: https://msgid.link/r/20231218090652.18403-1-amit.kumar-mahapatra@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to '.rustfmt.toml')
0 files changed, 0 insertions, 0 deletions