All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zhu Yi <yi.zhu@intel.com>
To: Karol Szkudlarek <karol@mikronika.com.pl>
Cc: linux-wireless@vger.kernel.org
Subject: Re: kernel crash during suspend using iwl3945 driver 1.2.26k on ubuntu hardy
Date: Wed, 03 Sep 2008 15:06:38 +0800	[thread overview]
Message-ID: <1220425598.28282.190.camel@debian.sh.intel.com> (raw)
In-Reply-To: <48BC47C5.2070807@mikronika.com.pl>

[-- Attachment #1: Type: text/plain, Size: 422 bytes --]

On Mon, 2008-09-01 at 21:51 +0200, Karol Szkudlarek wrote:
> I'm using Ubuntu 8.04 with compiled 1.2.26k linux wireless driver for 
> iwl3945 network card on my hp6710b laptop.
> Script during suspend trying to remove the iwl3945 module and I
> receive kernel crash.
> This is repeatable. I attached screenshot of kernel stack. Has
> somebody of iwl3945 developers can look on it?

Please try attached patch.

Thanks,
-yi

[-- Attachment #2: iwl3945_remove.patch --]
[-- Type: text/x-patch, Size: 1275 bytes --]

diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
index 53e234d..e312e93 100644
--- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -8117,9 +8117,15 @@ static void __devexit iwl3945_pci_remove(struct pci_dev *pdev)
 
 	IWL_DEBUG_INFO("*** UNLOAD DRIVER ***\n");
 
+	sysfs_remove_group(&pdev->dev.kobj, &iwl3945_attribute_group);
+
 	set_bit(STATUS_EXIT_PENDING, &priv->status);
 
-	iwl3945_down(priv);
+	if (priv->mac80211_registered) {
+		ieee80211_unregister_hw(priv->hw);
+		priv->mac80211_registered = 0;
+	} else
+		iwl3945_down(priv);
 
 	/* make sure we flush any pending irq or
 	 * tasklet for the driver
@@ -8130,8 +8136,6 @@ static void __devexit iwl3945_pci_remove(struct pci_dev *pdev)
 
 	iwl_synchronize_irq(priv);
 
-	sysfs_remove_group(&pdev->dev.kobj, &iwl3945_attribute_group);
-
 	iwl3945_rfkill_unregister(priv);
 	iwl3945_dealloc_ucode_pci(priv);
 
@@ -8142,9 +8146,6 @@ static void __devexit iwl3945_pci_remove(struct pci_dev *pdev)
 	iwl3945_unset_hw_setting(priv);
 	iwl3945_clear_stations_table(priv);
 
-	if (priv->mac80211_registered)
-		ieee80211_unregister_hw(priv->hw);
-
 	/*netif_stop_queue(dev); */
 	flush_workqueue(priv->workqueue);
 

  parent reply	other threads:[~2008-09-03  7:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-01 19:51 kernel crash during suspend using iwl3945 driver 1.2.26k on ubuntu hardy Karol Szkudlarek
2008-09-02 12:27 ` Karol Szkudlarek
2008-09-03  7:06 ` Zhu Yi [this message]
2008-09-03 18:22   ` Karol Szkudlarek
2008-09-05  7:55     ` Zhu Yi
2008-09-05  8:13       ` Karol Szkudlarek
2008-09-05 15:05         ` Larry Finger
2008-09-05 16:12           ` Tim Gardner
2008-09-09  8:01             ` Karol Szkudlarek
2008-09-09 12:17               ` Tim Gardner
2008-09-09 13:38                 ` Karol Szkudlarek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1220425598.28282.190.camel@debian.sh.intel.com \
    --to=yi.zhu@intel.com \
    --cc=karol@mikronika.com.pl \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.