]> 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)
committerThierry Reding <treding@nvidia.com>
Fri, 8 May 2020 10:42:33 +0000 (12:42 +0200)
commit2319bf22ac6d0c6a76ac0b93c80a9f08c6a78a42
tree175e60e51ff3be053004ba494bc80c9ce6ce19ef
parent4113933eb0263ac460781d72c044c3ae1f32024e
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: Thierry Reding <treding@nvidia.com>
drivers/i2c/busses/i2c-tegra.c