diff options
author | Dmitry Osipenko <digetx@gmail.com> | 2020-09-30 01:18:44 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2020-10-05 22:57:39 +0200 |
commit | 900aed24d3e45353e22f7fc00d6826b87c55761a (patch) | |
tree | bb336fefbe99c4168b9aa69314db4724c0eabdb9 /drivers/i2c/busses/i2c-xlr.c | |
parent | 35baff672f80afe569905e3873d961e1ed2d64a1 (diff) |
i2c: tegra: Make tegra_i2c_flush_fifos() usable in atomic transfer
The tegra_i2c_flush_fifos() shouldn't sleep in atomic transfer and jiffies
are not updating if interrupts are disabled. Let's switch to use iopoll
API helpers for register-polling. The iopoll API provides helpers for both
atomic and non-atomic cases.
Note that this patch doesn't fix any known problem because normally FIFO
is flushed at the time of starting a new transfer.
Reviewed-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Tested-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c/busses/i2c-xlr.c')
0 files changed, 0 insertions, 0 deletions