OSDN Git Service

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)
commit8814044fe0fa182abc9ff818d3da562de98bc9a7
tree8d2d9ec488296900ea85f790a2c101a76b64b370
parenta900aeac253729411cf33c6cb598c152e9e4137f
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