]> git.karo-electronics.de Git - karo-tx-linux.git/commit
spi: davinci: fix DMA event generation stoppage
authorBrian Niebuhr <bniebuhr@efjohnson.com>
Fri, 1 Oct 2010 08:30:48 +0000 (14:00 +0530)
committerSekhar Nori <nsekhar@ti.com>
Thu, 18 Nov 2010 13:08:34 +0000 (18:38 +0530)
commita4f4497b86a689aa8c827d4ebe0d00c4eba66f76
tree63fe8cdaf22c83b6f1d8214e784f0c385b80493e
parent49fc3f497d7d409e9b0dc384fe7c173bccd3b1a1
spi: davinci: fix DMA event generation stoppage

Do not stop SPI DMA event generation in either transmit or
receive DMA event call back because the single setting affects
both transmit and receive event generation.

Depending on the order in which the callbacks happen, transmit
or receive events can get unintentionally stalled.

Instead, disable event generation once after both the transmit
and receive DMA completes.

While at it, remove the largely under-used function to set or
clear DMA event generation.

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