]> git.karo-electronics.de Git - linux-beck.git/commit
spi: davinci: handle DMA completion errors correctly
authorBrian Niebuhr <bniebuhr@efjohnson.com>
Tue, 5 Oct 2010 06:08:41 +0000 (11:38 +0530)
committerSekhar Nori <nsekhar@ti.com>
Thu, 18 Nov 2010 13:08:35 +0000 (18:38 +0530)
commit9b189fd7584a1d8c68334dd1bc47b363877b314e
treeb501c938d169bbd948ef434c50aaf74ed2036bb1
parent523c37e7006522e778a1fd0aea2746ceb788572f
spi: davinci: handle DMA completion errors correctly

Do not simply clean the DMA channel on a DMA completion
error. Instead, use wcount and rcount members of davinci_spi
to detecion non-completion of DMA and signal EIO to the
application.

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