515adeb
This reverts commit 9483f40d8d01918b399b4e24d0c1111db0afffeb.
515adeb
515adeb
Some devices stop to connect with above commit, see:
515adeb
https://bugzilla.kernel.org/show_bug.cgi?id=61621
515adeb
515adeb
Since there is no clear benefit of having MSI enabled, just revert
515adeb
change to fix the problem.
515adeb
515adeb
Cc: stable@vger.kernel.org # 3.11+
515adeb
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
515adeb
---
515adeb
 drivers/net/wireless/rt2x00/rt2x00pci.c | 9 +--------
515adeb
 1 file changed, 1 insertion(+), 8 deletions(-)
515adeb
515adeb
diff --git a/drivers/net/wireless/rt2x00/rt2x00pci.c b/drivers/net/wireless/rt2x00/rt2x00pci.c
515adeb
index 76d95de..dc49e52 100644
515adeb
--- a/drivers/net/wireless/rt2x00/rt2x00pci.c
515adeb
+++ b/drivers/net/wireless/rt2x00/rt2x00pci.c
515adeb
@@ -105,13 +105,11 @@ int rt2x00pci_probe(struct pci_dev *pci_dev, const struct rt2x00_ops *ops)
515adeb
 		goto exit_release_regions;
515adeb
 	}
515adeb
 
515adeb
-	pci_enable_msi(pci_dev);
515adeb
-
515adeb
 	hw = ieee80211_alloc_hw(sizeof(struct rt2x00_dev), ops->hw);
515adeb
 	if (!hw) {
515adeb
 		rt2x00_probe_err("Failed to allocate hardware\n");
515adeb
 		retval = -ENOMEM;
515adeb
-		goto exit_disable_msi;
515adeb
+		goto exit_release_regions;
515adeb
 	}
515adeb
 
515adeb
 	pci_set_drvdata(pci_dev, hw);
515adeb
@@ -152,9 +150,6 @@ exit_free_reg:
515adeb
 exit_free_device:
515adeb
 	ieee80211_free_hw(hw);
515adeb
 
515adeb
-exit_disable_msi:
515adeb
-	pci_disable_msi(pci_dev);
515adeb
-
515adeb
 exit_release_regions:
515adeb
 	pci_release_regions(pci_dev);
515adeb
 
515adeb
@@ -179,8 +174,6 @@ void rt2x00pci_remove(struct pci_dev *pci_dev)
515adeb
 	rt2x00pci_free_reg(rt2x00dev);
515adeb
 	ieee80211_free_hw(hw);
515adeb
 
515adeb
-	pci_disable_msi(pci_dev);
515adeb
-
515adeb
 	/*
515adeb
 	 * Free the PCI device data.
515adeb
 	 */
515adeb
-- 
515adeb
1.8.3.1
515adeb
515adeb
--
515adeb
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
515adeb
the body of a message to majordomo@vger.kernel.org
515adeb
More majordomo info at  http://vger.kernel.org/majordomo-info.html