Skip to content

Commit deb821f

Browse files
author
Wolfram Sang
committed
Revert "i2c: tegra: Synchronize DMA before termination"
This reverts commit 8814044 because regressions were showing up. Suggested-by: Thierry Reding <[email protected]> Link: https://lore.kernel.org/dmaengine/[email protected]/ Signed-off-by: Wolfram Sang <[email protected]>
1 parent 068143a commit deb821f

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

drivers/i2c/busses/i2c-tegra.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,15 +1219,6 @@ static int tegra_i2c_xfer_msg(struct tegra_i2c_dev *i2c_dev,
12191219
time_left = tegra_i2c_wait_completion_timeout(
12201220
i2c_dev, &i2c_dev->dma_complete, xfer_time);
12211221

1222-
/*
1223-
* Synchronize DMA first, since dmaengine_terminate_sync()
1224-
* performs synchronization after the transfer's termination
1225-
* and we want to get a completion if transfer succeeded.
1226-
*/
1227-
dmaengine_synchronize(i2c_dev->msg_read ?
1228-
i2c_dev->rx_dma_chan :
1229-
i2c_dev->tx_dma_chan);
1230-
12311222
dmaengine_terminate_sync(i2c_dev->msg_read ?
12321223
i2c_dev->rx_dma_chan :
12331224
i2c_dev->tx_dma_chan);

0 commit comments

Comments
 (0)