aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-10-03 21:07:50 +0200
committerJohn W. Linville <linville@tuxdriver.com>2012-10-05 16:26:17 -0400
commit93170516a4d64319ffcc43bc9dd61f12775bd297 (patch)
tree2f601e5bcc94621967587319ff5e9a164d5e50c2 /drivers/net/wireless
parentipv6: release reference of ip6_null_entry's dst entry in __ip6_del_rt (diff)
downloadlinux-dev-93170516a4d64319ffcc43bc9dd61f12775bd297.tar.xz
linux-dev-93170516a4d64319ffcc43bc9dd61f12775bd297.zip
ath9k: fix ASPM initialization on resume
ath_pci_aspm_init is only called on card init, so PCI registers get reset after a suspend/resume cycle. Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/ath/ath9k/pci.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/pci.c b/drivers/net/wireless/ath/ath9k/pci.c
index 0e630a99b68b..270abf720f3e 100644
--- a/drivers/net/wireless/ath/ath9k/pci.c
+++ b/drivers/net/wireless/ath/ath9k/pci.c
@@ -324,6 +324,9 @@ static int ath_pci_suspend(struct device *device)
static int ath_pci_resume(struct device *device)
{
struct pci_dev *pdev = to_pci_dev(device);
+ struct ieee80211_hw *hw = pci_get_drvdata(pdev);
+ struct ath_softc *sc = hw->priv;
+ struct ath_common *common = ath9k_hw_common(sc->sc_ah);
u32 val;
/*
@@ -335,6 +338,8 @@ static int ath_pci_resume(struct device *device)
if ((val & 0x0000ff00) != 0)
pci_write_config_dword(pdev, 0x40, val & 0xffff00ff);
+ ath_pci_aspm_init(common);
+
return 0;
}