From: Olof Johansson Date: Fri, 11 Apr 2014 22:19:41 +0000 (-0700) Subject: i2c: s3c2410: resume race fix X-Git-Tag: omap-for-v3.16/fixes-against-rc1~173^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce78cc071f5f541480e381cc0241d37590041a9d;p=pandora-kernel.git i2c: s3c2410: resume race fix Don't unmark the device as suspended until after it's been re-setup. The main race would be w.r.t. an i2c driver that gets resumed at the same time (asyncronously), that is allowed to do a transfer since suspended is set to 0 before reinit, but really should have seen the -EIO return instead. Signed-off-by: Olof Johansson Signed-off-by: Doug Anderson Acked-by: Kukjin Kim Signed-off-by: Wolfram Sang Cc: stable@kernel.org --- Reading git-diff-tree failed