]> git.karo-electronics.de Git - mv-sheeva.git/commit
spi/pxa2xx: Modify RX-Tresh instead of busy-loop for the remaining RX bytes.
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Tue, 23 Nov 2010 01:12:17 +0000 (17:12 -0800)
committerSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 2 Dec 2010 16:55:13 +0000 (17:55 +0100)
commit579d3bb2ac1a351bbf536480a9ab38199bbf901d
tree7bea16be4415566fa430df5dcb25290411dec815
parent2a8626a9e2d86d114a2d9f813a1acebf9d53dd10
spi/pxa2xx: Modify RX-Tresh instead of busy-loop for the remaining RX bytes.

After all TX bytes are sent, the driver spins while the SPI core is busy
and then it spins for a "short" period of time until RX bytes are
available.
On Sodavile the busy flag disappears pretty quick and after that it
takes approx ~130ms (sometimes less but not much) until there are bytes
available in the RX FIFO.
This patch removes the busy loop and modifies the RX threshould so we
get woken up once the remainings bytes arrived.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Dirk Brandewie <dirk.brandewie@gmail.com>
drivers/spi/pxa2xx_spi.c