]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
spi: au1550_spi: improve pio transfer mode
authorJan Nikitenko <jan.nikitenko@gmail.com>
Thu, 24 Jul 2008 04:29:57 +0000 (21:29 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Jul 2008 17:47:30 +0000 (10:47 -0700)
commitbbe48ecc7f6559318cfc6c023da225a0b0e14ab3
treebc31e1fbea4180a6822abe4247c9cfdb59e6b206
parent3a93a159c61e38a12f7ecbb3a25cf3f012abcf7a
spi: au1550_spi: improve pio transfer mode

Improve PIO transfer mode of au1550 spi controller by continuing of spi
transfer, instead of aborting transfer when transmit underflow interrupt
occurrs.

Verified by oscilloscope that the spi clock pauses on trasmit underflow,
so transfer continuation is perfectly valid even though au1550 datasheet
says that on tx underflow zeroes will be transfered.

Also make some error messages more specific.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Jan Nikitenko <jan.nikitenko@gmail.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/spi/au1550_spi.c