i2c: tegra: notify transfer-complete after clearing status.
commitc889e91d2cc22123f20f40dde0c0a91856a20eea
authorLaxman Dewangan <ldewangan@nvidia.com>
Mon, 7 May 2012 06:46:19 +0000 (7 12:16 +0530)
committerWolfram Sang <w.sang@pengutronix.de>
Sat, 12 May 2012 14:10:12 +0000 (12 16:10 +0200)
tree82119964f7b663140b10ede80bf1759471d79972
parent3ac0b3379307f9c9bd00beacbf02623ab127e334
i2c: tegra: notify transfer-complete after clearing status.

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
drivers/i2c/busses/i2c-tegra.c