Thread (1 message) 1 message, 1 author, 2012-02-13

Re: [PATCH] i2c-s3c2410: move resume state flag to end of resume

From: Ben Dooks <hidden>
Date: 2012-02-13 22:54:39
Also in: linux-samsung-soc

On Sun, Feb 12, 2012 at 01:12:31PM +0000, Mark Brown wrote:
On Sat, Feb 11, 2012 at 12:22:21PM +0900, Huisung Kang wrote:
quoted
From: Kisoo Yu <redacted>
quoted
need to set flag after finishing its work
quoted
-	i2c->suspended = 0;
 	clk_enable(i2c->clk);
 	s3c24xx_i2c_init(i2c);
 	clk_disable(i2c->clk);
+	i2c->suspended = 0;
Why is this needed - given that there's no locking involved anywhere
here does this mean that we've got a race somewhere?
It is in the wrong order, the lack of locking is a bit of a problem
but then again so is the whole suspend/resume framework at the
moment. I'm inclined to apply this to the fixes branch.

-- 
Ben
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help