spi: davinci: fix EDMA CC errors at end of transfers
authorBrian Niebuhr <bniebuhr@efjohnson.com>
Mon, 4 Oct 2010 12:05:34 +0000 (17:35 +0530)
committerSekhar Nori <nsekhar@ti.com>
Thu, 18 Nov 2010 13:08:35 +0000 (18:38 +0530)
commit523c37e7006522e778a1fd0aea2746ceb788572f
treecc2146d573961b5cb62615c136042a88984c842a
parent903ca25b219e28e3513ca4c2ff379fcdf19e057e
spi: davinci: fix EDMA CC errors at end of transfers

Use a dummy param slot linked to itself to take care of the
extra "sync event" that gets sent to EDMA controller after
the last byte has been transferred.

The dummy PaRAM slot that is linked to the actual DMA PaRAM
slot "absorbs" this event and prevents a EDMA CC error to
be asserted.

Without this provision, the EDMA CC error would be asserted
because the channel PaRAM would be empty after the transfer
and EDMA would not know what to make out of the extra sync
event.

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