]> 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)
commit38b89747aa4861471fc04c51a2221187fe7d987d
tree8d2d9ec488296900ea85f790a2c101a76b64b370
parent0c92496dd3e5d25669523ca1d68145f9472a1cf8
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