spi: sirf: decrease the interrupt count and latency of PIO mode
authorQipan Li <Qipan.Li@csr.com>
Sun, 4 May 2014 06:32:36 +0000 (14:32 +0800)
committerMark Brown <broonie@linaro.org>
Tue, 20 May 2014 22:24:20 +0000 (23:24 +0100)
commit41148c3a728222a885bc2f3ba3ce66831de0b244
treee98c1efb42481caa47f2c256b73aef131812e079
parentc908ef345d2c314ec25cfac113a8f9bb2b6b3a25
spi: sirf: decrease the interrupt count and latency of PIO mode

current PIO tranfer method be described as follows:
1. fill as much as bytes but no more than 256 bytes(fifo size)
2. enable oflow/uflow/txfifo_empty interrupt
3. isr process 3 interrupt signal, do complete works.
4. after isr done, if there are left bytes go into 1 else go into 5
5. transfer end

by current PIO transfer method:
1. reduce interrupt counts in spi interrupt line.
2. reduce interrupt latency because no do data fill/fetch in isr.

Signed-off-by: Qipan Li <Qipan.Li@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-sirf.c