RE: [PATCH] OMAP HSMMC: fix a racing case between kmmcd and omap_hsmmc_suspend

2010-07-06 Thread Madhusudhan
> -Original Message- > From: Adrian Hunter [mailto:adrian.hun...@nokia.com] > Sent: Tuesday, July 06, 2010 1:11 PM > To: Madhusudhan Chikkature > Cc: Hunter Adrian (Nokia-D/Helsinki); Ethan Du; linux-mmc; Andrew Morton > Subject: Re: [PATCH] OMAP HSMMC: fix a racing

Re: [PATCH] OMAP HSMMC: fix a racing case between kmmcd and omap_hsmmc_suspend

2010-07-06 Thread Adrian Hunter
Hunter Adrian (Nokia-D/Helsinki) wrote: Ethan Du wrote: If suspend called when kmmcd is doing host->ops->disable, as kmmcd already increased host->en_dis_recurs to 1, the mmc_host_enable in suspend function will return directly without increase the nesting_cnt, which will cause the followed regi

Re: [PATCH] OMAP HSMMC: fix a racing case between kmmcd and omap_hsmmc_suspend

2010-06-21 Thread Adrian Hunter
Ethan Du wrote: If suspend called when kmmcd is doing host->ops->disable, as kmmcd already increased host->en_dis_recurs to 1, the mmc_host_enable in suspend function will return directly without increase the nesting_cnt, which will cause the followed register access carried out to the disabled h

[PATCH] OMAP HSMMC: fix a racing case between kmmcd and omap_hsmmc_suspend

2010-06-21 Thread Ethan Du
If suspend called when kmmcd is doing host->ops->disable, as kmmcd already increased host->en_dis_recurs to 1, the mmc_host_enable in suspend function will return directly without increase the nesting_cnt, which will cause the followed register access carried out to the disabled host. mmc_suspend_