summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-tegra20-slink.c
diff options
context:
space:
mode:
authorClark Wang <xiaoning.wang@nxp.com>2019-03-21 10:57:12 +0100
committerMark Brown <broonie@kernel.org>2019-03-21 16:02:28 +0100
commit69c8a9bcb03222ad3b949064ac05de463c7c9aa3 (patch)
tree2d2fc0763f1d4882342cf4769c21e92b060683c9 /drivers/spi/spi-tegra20-slink.c
parentspi : spi-topcliff-pch: Fix to handle empty DMA buffers (diff)
downloadlinux-69c8a9bcb03222ad3b949064ac05de463c7c9aa3.tar.xz
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 'drivers/spi/spi-tegra20-slink.c')
0 files changed, 0 insertions, 0 deletions