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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Feb 11, 2012 at 12:22:21PM +0900, Huisung Kang wrote:
> From: Kisoo Yu <ksoo.yu@xxxxxxxxxxx>

> need to set flag after finishing its work

> -	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?

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux SoC Development]     [Linux Rockchip Development]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Linux SCSI]     [Yosemite News]

  Powered by Linux