From: Ido Yariv Date: Tue, 24 Jul 2012 16:18:49 +0000 (+0300) Subject: wlcore: Prevent interaction with HW after recovery is queued X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~47^2~30^2~38^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cc533830b7e6b309e8b73196c410951fc2bed91;p=pandora-kernel.git wlcore: Prevent interaction with HW after recovery is queued When a function requests to recover, it would normally abort and will not send any additional commands to the HW. However, other threads may not be aware of the failure and could try to communicate with the HW after a recovery was queued, but before the recovery work began. Fix this by introducing an intermediate state which is set when recovery is queued, and modify all state checks accordingly. Signed-off-by: Ido Yariv Signed-off-by: Luciano Coelho --- Reading git-diff-tree failed