Doug Anderson 96219c3a25 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>
2011-09-07 00:13:40 +01:00
..
2011-03-31 11:26:23 -03:00
2011-07-25 17:49:42 +02:00
2009-06-16 22:42:16 +01:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-05-18 23:24:50 +02:00
2011-03-31 11:26:23 -03:00
2008-01-27 18:14:45 +01:00
2011-03-31 11:26:23 -03:00
2011-01-04 00:53:37 +00:00
2011-01-04 00:53:37 +00:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-05-24 20:58:49 +02:00
2011-05-24 20:58:49 +02:00
2009-04-07 10:23:34 +01:00
2011-03-31 11:26:23 -03:00
2011-06-29 11:36:10 +02:00
2010-10-24 18:16:59 +02:00