ath9k_hw: read and backup AR_WA register value even before chip reset on.
commitd1fd5e3acfed51de3e0ece46bb23faa73e6ab4c5
authorSenthil Balasubramanian <senthilkumar@atheros.com>
Wed, 22 Dec 2010 13:47:18 +0000 (22 19:17 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Mar 2011 20:03:42 +0000 (23 13:03 -0700)
treed54e8540ebdba7e46dbb5520db7b752e210e7139
parentd65298f49793478b76a0783233a054bc61cd16ac
ath9k_hw: read and backup AR_WA register value even before chip reset on.

commit 0a8d7cb0c8182df7a28ad719780071178c386f0f upstream.

We need to read and backup AR_WA register value permanently and reading
this after the chip is awakened results in this register being zeroed out.

This seems to fix the ASPM with L1 enabled issue that we have observed.
The laptop becomes very slow and hangs mostly with ASPM L1 enabled without
this fix.

Signed-off-by: Senthil Balasubramanian <senthilkumar@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/ath/ath9k/hw.c