]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: Fix ASPM workaround usage
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Sun, 25 Aug 2013 11:00:40 +0000 (16:30 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 26 Aug 2013 18:09:06 +0000 (14:09 -0400)
commitc2f358d789f582c231b3972f42b1bdff43c2db92
tree37b563d41e412267868b4b563d164b0e77197009
parente030593210de0f8d23de804e9f2580954ae9d4c8
ath9k: Fix ASPM workaround usage

The PCIE Workaround register (AR_WA/0x4004) is used to handle
various hardware quirks. For AR9002 chips, AR_WA_D3_L1_DISABLE
is used to prevent the HW from automatically entering L1 state
when D3 is enforced.

AR_WA_D3_L1_DISABLE has to be enabled for a few AR9280 based
cards, mark them based on their PCI subdevice/subvendor IDs
and enforce it in ar9002_hw_configpcipowersave().

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9002_hw.c
drivers/net/wireless/ath/ath9k/ar9003_hw.c
drivers/net/wireless/ath/ath9k/ath9k.h
drivers/net/wireless/ath/ath9k/hw.c
drivers/net/wireless/ath/ath9k/init.c
drivers/net/wireless/ath/ath9k/pci.c