i2c: tegra: Fix to avoid possible race condition
authorChaitanya Bandi <bandik@nvidia.com>
Fri, 16 Mar 2012 12:17:35 +0000 (17:17 +0530)
committerSimone Willett <swillett@nvidia.com>
Tue, 3 Apr 2012 16:27:00 +0000 (09:27 -0700)
commit8ddb969ed5b866ddbba5c55043848b8b9ab3dda4
treef9a5d66fcf79a53adfd0c1ea41b71851f56ed00e
parentd1bafe42b06e728e4502b9cbaba39c34d3d58913
i2c: tegra: Fix to avoid possible race condition

Because of race condition between isr and tx fifo fill,
duplicate data is being written. So added locking to make
Tx fifo fill as atomic.

Change-Id: Ia99466adadfb6d86a6f238ec4cd0aa13bd36e434
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/90870
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
drivers/i2c/busses/i2c-tegra.c