i2c: tegra: Prevent i2c transactions after suspend
authorColin Cross <ccross@android.com>
Fri, 23 Jul 2010 19:55:12 +0000 (12:55 -0700)
committerColin Cross <ccross@android.com>
Wed, 6 Oct 2010 23:26:45 +0000 (16:26 -0700)
commit1908b3377de876b3c6725173877fab33e09e0739
tree8d2c2cede36a5e0579d6821b6bad1245ca70933d
parent80f33a8c5ada9411d598f07cb79a7360e0ebc108
i2c: tegra: Prevent i2c transactions after suspend

The cpufreq driver suspends very late, and may cause an i2c
transaction when the clk api calls the dvfs api, which calls
the regulator api, which calls i2c.  Return an error if an
i2c transaction is requested after suspend has been called.

Change-Id: I4d92eb9c1f558758097e2dafda6fc02addf4e185
Signed-off-by: Colin Cross <ccross@android.com>
drivers/i2c/busses/i2c-tegra.c