ath9k: Revamp PCIE workarounds
authorVivek Natarajan <vnatarajan@atheros.com>
Thu, 17 Sep 2009 03:54:58 +0000 (09:24 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 23 Sep 2009 15:35:50 +0000 (11:35 -0400)
commit93b1b37f6a4de8bce17f55d9cfa10ef5c8c04e8a
tree16405891b20c8d73e80812d525ec45a9f71255f5
parent6170cd5c72399f8536412ac75cba29cddc9919fb
ath9k: Revamp PCIE workarounds

* Disable L1 state ONLY when device is in D3 mode.
* Clear bit 22 of register 0x4004.
* Handle power on/off properly

Not setting the workarounds properly resulted in the
disappearance of the card in certain cases.

Signed-off-by: Vivek Natarajan <vnatarajan@atheros.com>
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/hw.c
drivers/net/wireless/ath/ath9k/hw.h
drivers/net/wireless/ath/ath9k/main.c
drivers/net/wireless/ath/ath9k/reg.h