spi: cadence: Add usleep_range() for cdns_spi_fill_tx_fifo()
authorsxauwsk <sxauwsk@163.com>
Mon, 16 Apr 2018 20:01:27 +0000 (04:01 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 18 Apr 2018 10:28:29 +0000 (11:28 +0100)
commit49530e6411789c1b9ea3ebc58e520c19d1c3752f
treee9a684422ec5ae49ad5a6fe20e71a11bf68c0888
parent10b4640833e95eeacaef8060bc1b35e636df3218
spi: cadence: Add usleep_range() for cdns_spi_fill_tx_fifo()

In case of xspi work in busy condition, may send bytes failed.
once something wrong, spi controller did't work any more

My test found this situation appear in both of read/write process.
so when TX FIFO is full, add one byte delay before send data;

Signed-off-by: sxauwsk <sxauwsk@163.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-cadence.c