spi: fsl-lpspi: Prevent FIFO under/overrun by default
authorHieu Tran Dang <dangtranhieu2012@gmail.com>
Tue, 2 Oct 2018 11:06:36 +0000 (18:06 +0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 Nov 2019 07:20:55 +0000 (08:20 +0100)
commit8aa36b8a7684eb616807631e27b96494110a5102
tree8dd76cff968ef494c05aba8e6e38ef27026bf16f
parent07ed61a0a711bf7b2c91041a332ec5a4035689cb
spi: fsl-lpspi: Prevent FIFO under/overrun by default

[ Upstream commit de8978c388c66b8fca192213ec9f0727e964c652 ]

Certain devices don't work well when a transmit FIFO underrun or
receive FIFO overrun occurs. Example is the SAF400x radio chip when
running at high speed which leads to garbage being sent to/received from
the chip. In which case, it should stall waiting for further data to be
available before proceeding. This patch unset the NOSTALL bit in CFGR1
by default to prevent this issue.

Signed-off-by: Hieu Tran Dang <dangtranhieu2012@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-fsl-lpspi.c