mfd: Deny ab8500 suspend if i2c transfer is ongoing
authorJonas Aaberg <jonas.aberg@stericsson.com>
Tue, 17 Apr 2012 07:30:33 +0000 (09:30 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 1 May 2012 11:33:18 +0000 (13:33 +0200)
If we are in the middle of an I2C transfer we need to deny suspend
of the AB8500 core. Implement an atomic reference counter for the
I2C operations to make sure we don't do this.

Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Reviewed-by: Mattias Wallin <mattias.wallin@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

No differences found