]> git.karo-electronics.de Git - karo-tx-linux.git/commit
spi/s3c64xx: Split wait_for_xfer() into PIO and DMA versions
authorMark Brown <broonie@linaro.org>
Fri, 24 Jan 2014 20:05:43 +0000 (20:05 +0000)
committerMark Brown <broonie@linaro.org>
Tue, 4 Feb 2014 12:49:10 +0000 (12:49 +0000)
commit3700c6eb1e41a898c35c8dd4d5b10dc65fdaf486
tree6b325d7849d3041ea6a5328ba2536d92ad173e5b
parent4ddc86005b1266b81c7b1b574a2402d3d8deda44
spi/s3c64xx: Split wait_for_xfer() into PIO and DMA versions

There is no meaningful code sharing between the PIO and DMA variants
(just the timeout calculation) so in order to make the code easier to
work with split the two cases.

Looking at the code it is not clear how the PIO version works for large
transmits, greater than FIFO size is only handled for RX.

Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-s3c64xx.c