1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-07-01 00:53:50 +03:00

ath9k: add a patch to fix ASPM related issues

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33277 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2012-08-27 11:07:23 +00:00
parent 7c72781520
commit 2cc87d4e87

View File

@ -0,0 +1,21 @@
--- a/drivers/net/wireless/ath/ath9k/pci.c
+++ b/drivers/net/wireless/ath/ath9k/pci.c
@@ -331,6 +331,9 @@ static int ath_pci_suspend(struct 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;
/*
@@ -342,6 +345,8 @@ static int ath_pci_resume(struct device
if ((val & 0x0000ff00) != 0)
pci_write_config_dword(pdev, 0x40, val & 0xffff00ff);
+ ath_pci_aspm_init(common);
+
return 0;
}