From: Zhu Yi <yi.zhu@intel.com>
To: linville@tuxdriver.com
Cc: linux-wireless@vger.kernel.org,
Tomas Winkler <tomas.winkler@intel.com>,
Zhu Yi <yi.zhu@intel.com>
Subject: [PATCH 05/11] iwlwifi: workaround interrupt handling no some platforms
Date: Thu, 28 Aug 2008 17:25:04 +0800 [thread overview]
Message-ID: <1219915510-3647-6-git-send-email-yi.zhu@intel.com> (raw)
In-Reply-To: <1219915510-3647-5-git-send-email-yi.zhu@intel.com>
From: Tomas Winkler <tomas.winkler@intel.com>
This patch adds workaround for an interrupt related hardware bug on
some platforms.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
---
drivers/net/wireless/iwlwifi/iwl-agn.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index e35db85..4986137 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -2601,6 +2601,7 @@ static int iwl4965_mac_start(struct ieee80211_hw *hw)
{
struct iwl_priv *priv = hw->priv;
int ret;
+ u16 pci_cmd;
IWL_DEBUG_MAC80211("enter\n");
@@ -2611,6 +2612,13 @@ static int iwl4965_mac_start(struct ieee80211_hw *hw)
pci_restore_state(priv->pci_dev);
pci_enable_msi(priv->pci_dev);
+ /* enable interrupts if needed: hw bug w/a */
+ pci_read_config_word(priv->pci_dev, PCI_COMMAND, &pci_cmd);
+ if (pci_cmd & PCI_COMMAND_INTX_DISABLE) {
+ pci_cmd &= ~PCI_COMMAND_INTX_DISABLE;
+ pci_write_config_word(priv->pci_dev, PCI_COMMAND, pci_cmd);
+ }
+
ret = request_irq(priv->pci_dev->irq, iwl4965_isr, IRQF_SHARED,
DRV_NAME, priv);
if (ret) {
--
1.5.3.6
next prev parent reply other threads:[~2008-08-28 9:29 UTC|newest]
Thread overview: 61+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-28 9:24 [PATCH 00/11] iwlwifi driver fixes for 2.6.27 Zhu Yi
2008-08-28 9:25 ` [PATCH 01/11] iwlwifi: W/A for the TSF correction in IBSS Zhu Yi
2008-08-28 9:25 ` [PATCH 02/11] iwlwifi: use mac80211 band and channel settings Zhu Yi
2008-08-28 9:25 ` [PATCH 03/11] iwlwifi: fix hidden ssid discovery in passive channels Zhu Yi
2008-08-28 9:25 ` [PATCH 04/11] iwlwifi: remove false rxon if rx chain changes Zhu Yi
2008-08-28 9:25 ` Zhu Yi [this message]
2008-08-28 9:25 ` [PATCH 06/11] iwlwifi: fix apm_stop Zhu Yi
2008-08-28 9:25 ` [PATCH 07/11] iwlwifi: generic init calibrations framework Zhu Yi
2008-08-28 9:25 ` [PATCH 08/11] iwlwifi: call apm stop on exit Zhu Yi
2008-08-28 9:25 ` [PATCH 09/11] iwlwifi: fix station mimo power save values Zhu Yi
2008-08-28 9:25 ` [PATCH 10/11] iwlwifi: fix rx_chain computation Zhu Yi
2008-08-28 9:25 ` [PATCH 11/11] iwlwifi: fix 64bit platform firmware loading Zhu Yi
2008-08-28 12:43 ` Marcel Holtmann
2008-08-28 12:41 ` [PATCH 10/11] iwlwifi: fix rx_chain computation Marcel Holtmann
2008-08-28 11:16 ` Tomas Winkler
2008-08-28 13:59 ` Marcel Holtmann
2008-08-28 14:37 ` Tomas Winkler
2008-08-28 12:40 ` [PATCH 09/11] iwlwifi: fix station mimo power save values Marcel Holtmann
2008-08-28 11:11 ` Tomas Winkler
2008-08-28 14:02 ` Marcel Holtmann
2008-08-28 14:38 ` Tomas Winkler
2008-08-28 12:39 ` [PATCH 08/11] iwlwifi: call apm stop on exit Marcel Holtmann
2008-08-28 10:52 ` Johannes Berg
2008-08-28 12:56 ` Marcel Holtmann
2008-08-28 10:58 ` Tomas Winkler
2008-08-28 14:09 ` Marcel Holtmann
2008-08-28 14:35 ` Tomas Winkler
2008-08-28 19:15 ` David Miller
2008-08-28 11:05 ` Johannes Berg
2008-08-29 1:58 ` Zhu Yi
2008-09-02 21:01 ` John W. Linville
2008-09-02 22:49 ` Tomas Winkler
2008-08-28 12:36 ` [PATCH 07/11] iwlwifi: generic init calibrations framework Marcel Holtmann
2008-08-28 11:20 ` Tomas Winkler
2008-08-28 14:12 ` Marcel Holtmann
2008-08-28 14:29 ` Tomas Winkler
2008-08-28 12:33 ` [PATCH 06/11] iwlwifi: fix apm_stop Marcel Holtmann
2008-08-28 11:21 ` Tomas Winkler
2008-08-28 12:23 ` Johannes Berg
2008-08-28 12:43 ` Tomas Winkler
2008-08-28 13:04 ` Michael Buesch
2008-08-28 14:34 ` Marcel Holtmann
2008-08-28 15:33 ` drago01
2008-08-28 11:38 ` Michael Buesch
2008-08-28 11:41 ` Tomas Winkler
2008-08-28 14:18 ` Marcel Holtmann
2008-08-28 12:32 ` [PATCH 05/11] iwlwifi: workaround interrupt handling no some platforms Marcel Holtmann
2008-08-28 12:30 ` [PATCH 04/11] iwlwifi: remove false rxon if rx chain changes Marcel Holtmann
2008-08-28 11:06 ` Tomas Winkler
2008-08-28 13:53 ` Marcel Holtmann
2008-08-28 12:29 ` [PATCH 03/11] iwlwifi: fix hidden ssid discovery in passive channels Marcel Holtmann
2008-08-28 10:40 ` Tomas Winkler
2008-08-28 12:49 ` Marcel Holtmann
2008-08-28 11:38 ` Tomas Winkler
2008-08-28 13:56 ` Marcel Holtmann
2008-08-28 12:27 ` [PATCH 02/11] iwlwifi: use mac80211 band and channel settings Marcel Holtmann
2008-08-28 11:32 ` Tomas Winkler
2008-08-28 13:57 ` Marcel Holtmann
2008-08-28 12:26 ` [PATCH 01/11] iwlwifi: W/A for the TSF correction in IBSS Marcel Holtmann
2008-09-02 21:05 ` [PATCH 00/11] iwlwifi driver fixes for 2.6.27 John W. Linville
2008-09-03 7:59 ` Marcel Holtmann
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=1219915510-3647-6-git-send-email-yi.zhu@intel.com \
--to=yi.zhu@intel.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=tomas.winkler@intel.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 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).