]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: tegra: Synchronize DMA before termination
authorDmitry Osipenko <digetx@gmail.com>
Tue, 24 Mar 2020 19:12:17 +0000 (22:12 +0300)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 15 Apr 2020 16:27:31 +0000 (18:27 +0200)
commitc9a152efefdbd6105c50e9a4d09102cb16f44e75
tree8d2d9ec488296900ea85f790a2c101a76b64b370
parent565c347932a998b89b9a83081cd9696c4e2596d7
i2c: tegra: Synchronize DMA before termination

DMA transfer could be completed, but CPU (which handles DMA interrupt)
may get too busy and can't handle the interrupt in a timely manner,
despite of DMA IRQ being raised. In this case the DMA state needs to
synchronized before terminating DMA transfer in order not to miss the
DMA transfer completion.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-tegra.c