diff options
author | Doug Anderson <dianders@chromium.org> | 2011-08-30 11:46:10 -0600 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2011-09-07 00:13:40 +0100 |
commit | 96219c3a257cc8ba3b3cae67efdc88be37cf7c9d (patch) | |
tree | 9b46e7ee94f9db13a414ec2e445c8a0551aa3982 /.mailmap | |
parent | 048e29cff95168ea3a9f176e84cc0bae54d0ae64 (diff) |
i2c-tegra: fix possible race condition after tx
In tegra_i2c_fill_tx_fifo, once we have finished pushing all the bytes
to the I2C hardware controller, the interrupt might happen before we
have updated i2c_dev->msg_buf_remaining at the end of the function.
Then, in tegra_i2c_isr, we will call again tegra_i2c_fill_tx_fifo
triggering weird behaviour. This has been shown to happen under real
conditions.
Signed-off-by: Doug Anderson <dianders@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Acked-by: Rhyland Klein <rklein@nvidia.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions