]> git.baikalelectronics.ru Git - kernel.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)
commit72029ae9c7e1b66fb7839385d7d7ffb7e49c936a
tree6b325d7849d3041ea6a5328ba2536d92ad173e5b
parent93574a53ac0cdbe88ad50116680d9f95b69becdc
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