Search Linux Wireless

[PATCH 2.6.{32,31}] iwlwifi: power up all devices for EEPROM read

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
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

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux