]> git.karo-electronics.de Git - linux-beck.git/commit
spi: davinci: always start receive DMA
authorBrian Niebuhr <bniebuhr@efjohnson.com>
Fri, 1 Oct 2010 04:59:29 +0000 (10:29 +0530)
committerSekhar Nori <nsekhar@ti.com>
Thu, 18 Nov 2010 13:08:34 +0000 (18:38 +0530)
commite91c659bbcf2f47519260182a75f64ede34df3ca
treef72c8d87f1b28b2119b1a3f17b85e38e5e4cc13f
parentd3f7141cbf4580b2f18f93940df29cf0c15e7ef5
spi: davinci: always start receive DMA

In keeping with the full duplex nature of the SPI bus. Always
start receive DMA along with transmit DMA.

If there is no receive buffer provided with the transfer, use
a temporary buffer to receive the data to be thrown away.

[michael.williamson@criticallink.com: receive DMA size should
be same as transfer length to avoid hang-up when transfer length
is smaller than temporary rx buffer size (rx buffer not provided)]

Signed-off-by: Brian Niebuhr <bniebuhr@efjohnson.com>
Tested-By: Michael Williamson <michael.williamson@criticallink.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
drivers/spi/davinci_spi.c