From: Stephen Hemminger <shemminger@linux-foundation.org>
To: Jeff Garzik <jeff@garzik.org>
Cc: "John W. Linville" <linville@tuxdriver.com>,
James Ketrenos <jketreno@linux.intel.com>,
linux-wireless@vger.kernel.org
Subject: Re: [PATCH] iwlwifi: MSI support
Date: Wed, 13 Jun 2007 13:28:23 -0700 [thread overview]
Message-ID: <20070613132823.2903bf5f@localhost> (raw)
In-Reply-To: <467039E0.7080109@garzik.org>
Add Message Signal Interrupt support to iwlwifi. Tested on 3945.
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
--- a/drivers/net/wireless/mac80211/iwlwifi/base.c 2007-06-13 11:10:10.000000000 -0700
+++ b/drivers/net/wireless/mac80211/iwlwifi/base.c 2007-06-13 13:10:25.000000000 -0700
@@ -8117,6 +8117,9 @@ static int iwl_pci_probe(struct pci_dev
/* If power management is turned on, default to AC mode */
priv->power_mode = IWL_POWER_AC;
priv->user_txpower_limit = IWL_DEFAULT_TX_POWER;
+
+ pci_enable_msi(pdev);
+
err = request_irq(pdev->irq, iwl_isr, IRQF_SHARED, DRV_NAME, priv);
if (err) {
IWL_ERROR("Error allocating IRQ %d\n", pdev->irq);
@@ -8155,6 +8158,7 @@ static int iwl_pci_probe(struct pci_dev
sysfs_remove_group(&pdev->dev.kobj, &iwl_attribute_group);
out_release_irq:
+ pci_disable_msi(pdev);
free_irq(pdev->irq, priv);
out_destroy_workqueue:
@@ -8224,6 +8228,8 @@ static void iwl_pci_remove(struct pci_de
destroy_workqueue(priv->workqueue);
priv->workqueue = NULL;
+ pci_disable_msi(pdev);
+
free_irq(pdev->irq, priv);
iounmap(priv->hw_base);
pci_release_regions(pdev);
next prev parent reply other threads:[~2007-06-13 20:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-13 18:29 [PATCH] iwlwifi: MSI support Stephen Hemminger
2007-06-13 18:39 ` Jeff Garzik
2007-06-13 20:28 ` Stephen Hemminger [this message]
2007-06-13 20:30 ` Jeff Garzik
2007-06-13 18:41 ` Randy Dunlap
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=20070613132823.2903bf5f@localhost \
--to=shemminger@linux-foundation.org \
--cc=jeff@garzik.org \
--cc=jketreno@linux.intel.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
/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.