i2c: tegra: notify transfer-complete after clearing status.
authorLaxman Dewangan <ldewangan@nvidia.com>
Mon, 7 May 2012 06:46:19 +0000 (12:16 +0530)
committerWolfram Sang <w.sang@pengutronix.de>
Sat, 12 May 2012 14:10:12 +0000 (16:10 +0200)
The notification of the transfer complete by calling complete()
should be done after clearing all interrupt status.
This avoids the race condition of misconfigure the i2c controller
in multi-core environment.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Cc: stable@kernel.org

No differences found