Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318262
b: refs/heads/master
c: a3ce9a8
h: refs/heads/master
v: v3
  • Loading branch information
Shubhrajyoti D authored and Mark Brown committed Jul 20, 2012
1 parent 4946960 commit 591813a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b316590043372c2ca0040567a480396eb4bb2f0b
refs/heads/master: a3ce9a801b56e9b2118ce8d25b4f6f84f1d37dd4
6 changes: 4 additions & 2 deletions trunk/drivers/spi/spi-omap2-mcspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,8 @@ omap2_mcspi_txrx_dma(struct spi_device *spi, struct spi_transfer *xfer)

if (tx != NULL) {
wait_for_completion(&mcspi_dma->dma_tx_completion);
dma_unmap_single(&spi->dev, xfer->tx_dma, count, DMA_TO_DEVICE);
dma_unmap_single(mcspi->dev, xfer->tx_dma, count,
DMA_TO_DEVICE);

/* for TX_ONLY mode, be sure all words have shifted out */
if (rx == NULL) {
Expand All @@ -403,7 +404,8 @@ omap2_mcspi_txrx_dma(struct spi_device *spi, struct spi_transfer *xfer)

if (rx != NULL) {
wait_for_completion(&mcspi_dma->dma_rx_completion);
dma_unmap_single(&spi->dev, xfer->rx_dma, count, DMA_FROM_DEVICE);
dma_unmap_single(mcspi->dev, xfer->rx_dma, count,
DMA_FROM_DEVICE);
omap2_mcspi_set_enable(spi, 0);

if (l & OMAP2_MCSPI_CHCONF_TURBO) {
Expand Down

0 comments on commit 591813a

Please sign in to comment.