Re: [PATCH] staging: brcm80211: BUGFIX for issue that the system is frozen when it trys to enter into suspend mode.

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

 



On Thu, Feb 10, 2011 at 08:23:03PM -0800, Venkat Rao wrote:
> > Why does the system freeze?  That macro just checks if the device is in
> > ready mode and if it's not, then it returns -EIO.  I wouldn't expect it
> > to freeze, just to print something to dmesg and refuse to suspend.
> > 
> > What am I missing?
> 
> Yes that's correct frozen is not the right terminology. This bug prevents system from entering suspend state (by printing message on those lines to dmesg)
> 
> When system enters the suspend mode network layer calls ifdown() followed by cfg80211 layer calling wl_cfg80211_suspend() which is registered as suspend handler for cfg80211 layer
> 
> ifdown() call ultimately funnels down to __wl_cfg80211_down() call where WL_STATUS_READY bit is cleared via call to "clear_bit(WL_STATUS_READY, &wl->status)"
> 
> But CHECK_SYS_UP()checks WL_STATUS_READY bit thinking it's not ready and returns -EIO from suspend handler which intern prevents entering into system suspend state
> 
> CHECK_SYS_UP() is mainly used in the code path where upper layer would request certain wifi related activity to be performed by the firmware, where this calls helps to make sure our firmware would be in ready state to respond to those requests
> 
> But in the case of wl_cfg80211_suspend() code path there is no need to check for firmware status for any reason

Ok, that all is a great description of the problem, and your solution,
why didn't you say that the first time?

Please put this in the change log comment and resend your patch and I'll
queue it up.  Next time, please don't force us to go through this round
and round process, it's like pulling teeth...

thanks,

greg k-h
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux