spi: spi-s3c64xx: Allow higher transfer lengths in polling IO mode
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 12 Apr 2018 14:08:27 +0000 (16:08 +0200)
committerJunghoon Kim <jhoon20.kim@samsung.com>
Thu, 14 Feb 2019 05:56:59 +0000 (14:56 +0900)
commit3a98c84430c443e0729f61b36e1e91a8efb4f264
tree8c720061fd7a33432abc54e5a14326605312811d
parent275fc5a470ef15b131a9f55ccf195213e5f9690d
spi: spi-s3c64xx: Allow higher transfer lengths in polling IO mode

Some variants of the SPI controller have no DMA support, in such case
SPI transfers longer than the FIFO length are not currently properly handled
by the driver. Fix it by doing multiple transfers in the s3c64xx_spi_transfer_one()
function if the SPI transfer length exceeds the FIFO size.

Change-Id: I6a21a72f40a52237ebe3c1f3037153e27f7392fb
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
drivers/spi/spi-s3c64xx.c