spi: lpspi: Let watermark change with send data length
authorClark Wang <xiaoning.wang@nxp.com>
Fri, 7 Dec 2018 02:50:38 +0000 (02:50 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 13 Dec 2018 11:57:28 +0000 (11:57 +0000)
commitcf86874bb9bdb99ba3620428b59b0408fbc703d0
treeff44f80e499856282f2c9395fdff9d13b901dfca
parentbcd87317aae26b9ac497cbc1232783aaea1aeed4
spi: lpspi: Let watermark change with send data length

Configure watermark to change with the length of the sent data.
Support LPSPI sending message shorter than tx/rxfifosize.

Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-lpspi.c