linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 3.7 1/3] ath9k: fix ASPM initialization on resume
@ 2012-10-03 19:07 Felix Fietkau
  2012-10-03 19:07 ` [PATCH 3.7 2/3] ath9k: improve suspend/resume reliability Felix Fietkau
  0 siblings, 1 reply; 7+ messages in thread
From: Felix Fietkau @ 2012-10-03 19:07 UTC (permalink / raw)
  To: linux-wireless; +Cc: linville, mcgrof

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>
---
 drivers/net/wireless/ath/ath9k/pci.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/net/wireless/ath/ath9k/pci.c b/drivers/net/wireless/ath/ath9k/pci.c
index c0c5996..ea1d59e 100644
--- a/drivers/net/wireless/ath/ath9k/pci.c
+++ b/drivers/net/wireless/ath/ath9k/pci.c
@@ -333,6 +333,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;
 
 	/*
@@ -344,6 +347,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;
 }
 
-- 
1.7.9.6 (Apple Git-31.1)


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-10-06 10:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-03 19:07 [PATCH 3.7 1/3] ath9k: fix ASPM initialization on resume Felix Fietkau
2012-10-03 19:07 ` [PATCH 3.7 2/3] ath9k: improve suspend/resume reliability Felix Fietkau
2012-10-03 19:07   ` [PATCH 3.7 3/3] ath9k: use ieee80211_free_txskb Felix Fietkau
2012-10-04  2:33   ` [PATCH 3.7 2/3] ath9k: improve suspend/resume reliability Sujith Manoharan
2012-10-04  9:33     ` Felix Fietkau
2012-10-06 10:46       ` Manoharan, Sujith
2012-10-06 10:59         ` Felix Fietkau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).