From: Eliad Peller Date: Sat, 2 Apr 2011 23:01:59 +0000 (+0300) Subject: wl12xx: avoid premature elp entrance X-Git-Tag: v3.0-rc1~377^2~54^2^2~125^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a665d6e260f0233aac73f74d15bb6a029cc5ec47;p=pandora-kernel.git wl12xx: avoid premature elp entrance The elp_work is being enqueued on wl1271_ps_elp_sleep, but doesn't get cancelled on wl1271_ps_elp_wakeup. This might cause immediate entrance to elp when the wl->mutex is being released, rather than using the delayed enqueueing optimization. Cancel elp_work on wakeup request, and add a new WL1271_FLAG_ELP_REQUESTED flag to further synchronize the elp actions. [Fixed a couple of typos in some comments -- Luca] Signed-off-by: Eliad Peller Signed-off-by: Luciano Coelho --- Reading git-diff-tree failed