]> git.karo-electronics.de Git - karo-tx-linux.git/commit
i2c: tegra: notify transfer-complete after clearing status.
authorLaxman Dewangan <ldewangan@nvidia.com>
Mon, 7 May 2012 06:46:19 +0000 (12:16 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Jun 2012 07:15:55 +0000 (15:15 +0800)
commit88fad6c0b5f2528a32c58161cc0157a13868c095
tree44c7d6e8248b6e611682bd0d1fd39cef0b939772
parente9c769c264f57a11979b56f114183ef01402a11d
i2c: tegra: notify transfer-complete after clearing status.

commit c889e91d2cc22123f20f40dde0c0a91856a20eea upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/busses/i2c-tegra.c