linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2.6.{32,31}] iwlwifi: power up all devices for EEPROM read
@ 2010-01-21 12:22 Stanislaw Gruszka
  2010-01-21 18:02 ` reinette chatre
  2010-01-21 20:51 ` [stable] [PATCH 2.6.{32, 31}] " Greg KH
  0 siblings, 2 replies; 6+ messages in thread
From: Stanislaw Gruszka @ 2010-01-21 12:22 UTC (permalink / raw)
  To: stable, linux-wireless
  Cc: Reinette Chatre, John W. Linville, Stanislaw Gruszka

commit f8701fe3aec24fcfb0dfa19aab47904611f96daf upstream

On 2.6.31 and 2.6.32 iwl3945 crash during kdump, I discovered
above upstream commit fix that.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
---
I tested patch on 2.6.32 with iwl3945 - it fix kdump, and on 2.6.31
with iwl5300 - no regression notice.

 drivers/net/wireless/iwlwifi/iwl-eeprom.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/net/wireless/iwlwifi/iwl-eeprom.c b/drivers/net/wireless/iwlwifi/iwl-eeprom.c
index 18dc3a4..870c0db 100644
--- a/drivers/net/wireless/iwlwifi/iwl-eeprom.c
+++ b/drivers/net/wireless/iwlwifi/iwl-eeprom.c
@@ -486,6 +486,7 @@ int iwl_eeprom_init(struct iwl_priv *priv)
 	}
 	e = (__le16 *)priv->eeprom;
 
+	priv->cfg->ops->lib->apm_ops.init(priv);
 	ret = priv->cfg->ops->lib->eeprom_ops.verify_signature(priv);
 	if (ret < 0) {
 		IWL_ERR(priv, "EEPROM not found, EEPROM_GP=0x%08x\n", gp);
@@ -556,6 +557,8 @@ done:
 err:
 	if (ret)
 		iwl_eeprom_free(priv);
+	/* Reset chip to save power until we load uCode during "up". */
+	priv->cfg->ops->lib->apm_ops.stop(priv);
 alloc_err:
 	return ret;
 }
-- 
1.6.2.5


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

end of thread, other threads:[~2010-01-22  7:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-21 12:22 [PATCH 2.6.{32,31}] iwlwifi: power up all devices for EEPROM read Stanislaw Gruszka
2010-01-21 18:02 ` reinette chatre
2010-01-22  7:43   ` Stanislaw Gruszka
2010-01-21 20:51 ` [stable] [PATCH 2.6.{32, 31}] " Greg KH
2010-01-21 20:59   ` reinette chatre
2010-01-21 21:05     ` Greg KH

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).