diff options
author | 2019-03-21 09:57:12 +0000 | |
---|---|---|
committer | 2019-03-21 15:02:28 +0000 | |
commit | 69c8a9bcb03222ad3b949064ac05de463c7c9aa3 (patch) | |
tree | 2d2fc0763f1d4882342cf4769c21e92b060683c9 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | spi : spi-topcliff-pch: Fix to handle empty DMA buffers (diff) | |
download | wireguard-linux-69c8a9bcb03222ad3b949064ac05de463c7c9aa3.tar.xz wireguard-linux-69c8a9bcb03222ad3b949064ac05de463c7c9aa3.zip |
spi: lpspi: fix dataloss when SS is inactivated between every words
If we don't use CONT to keep SS activated or use DMA mode without
cs-gpio, SS will be inactivated between every words. The word here
means the data sent once which length can be set as 1/2/4 bytes.
In the isr function, we read the FSR_RXCOUNT just behind the
fsl_lpspi_read_rx_fifo. This causes the value of FSR_RXCOUNT cannot
reflect whether there is still data not sent timely. So do this
judgement by FSR_TXCOUNT.
Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions