diff options
author | Doug Anderson <[email protected]> | 2011-08-30 11:46:10 -0600 |
---|---|---|
committer | Ben Dooks <[email protected]> | 2011-09-07 00:13:40 +0100 |
commit | 96219c3a257cc8ba3b3cae67efdc88be37cf7c9d (patch) | |
tree | 9b46e7ee94f9db13a414ec2e445c8a0551aa3982 /net/lapb/lapb_subr.c | |
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 <[email protected]>
Tested-by: Vincent Palatin <[email protected]>
Acked-by: Rhyland Klein <[email protected]>
Acked-by: Stephen Warren <[email protected]>
Signed-off-by: Stephen Warren <[email protected]>
Signed-off-by: Ben Dooks <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions