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)
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>

No differences found