From: Jonas Aaberg Date: Tue, 17 Apr 2012 07:30:33 +0000 (+0200) Subject: mfd: Deny ab8500 suspend if i2c transfer is ongoing X-Git-Tag: v3.5-rc1~51^2~84 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=112a80d29b529d4057777ac2cb4ec15ff5b6d210;p=pandora-kernel.git mfd: Deny ab8500 suspend if i2c transfer is ongoing 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 Reviewed-by: Mattias Wallin Signed-off-by: Linus Walleij Signed-off-by: Samuel Ortiz --- Reading git-diff-tree failed