From: Sujith Date: Tue, 1 Jun 2010 09:44:11 +0000 (+0530) Subject: ath9k_htc: Revamp CONF_IDLE handling X-Git-Tag: v2.6.36-rc1~571^2~615^2~65 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=881ac6a53587acb12b009a3053830295688f2c70;p=pandora-kernel.git ath9k_htc: Revamp CONF_IDLE handling This patch revamps IDLE power save handling in the driver. Two separate functions (radio enable/disable) are introduced, because the semantics of radio handling is just not the same as the start()/stop() callbacks. For example, the HW must not be disabled, instead, the PHY has to be disabled in radio_disable(). Also, the HW has to be reset properly in radio enable/disable and certain registers have to be programmed only once, in the start() callback. The radio_enable() routine doesn't need the PS wrappers since we set the HW power mode to AWAKE anyway before calling it. Signed-off-by: Sujith Signed-off-by: John W. Linville --- Reading git-diff-tree failed