Search Linux Wireless

[PATCH] ath5k: msi support

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

 



The atheros on my Fujitsu b6210 supports MSI.

Signed-off-by: Stephen Hemminger <shemminger@xxxxxxxxxxxxxxxxxxxx>

--- a/drivers/net/wireless/ath5k_base.c	2007-09-18 09:10:05.000000000 -0700
+++ b/drivers/net/wireless/ath5k_base.c	2007-09-18 09:10:08.000000000 -0700
@@ -2315,6 +2315,8 @@ static int __devinit ath_pci_probe(struc
 
 	pci_set_drvdata(pdev, hw);
 
+	pci_enable_msi(pdev);
+
 	ret = request_irq(pdev->irq, ath_intr, IRQF_SHARED, "ath", sc);
 	if (ret) {
 		dev_err(&pdev->dev, "request_irq failed\n");
@@ -2345,6 +2347,7 @@ err_ah:
 err_irq:
 	free_irq(pdev->irq, sc);
 err_free:
+	pci_disable_msi(pdev);
 	ieee80211_free_hw(hw);
 err_map:
 	pci_iounmap(pdev, mem);
@@ -2364,6 +2367,7 @@ static void __devexit ath_pci_remove(str
 	ath_detach(pdev, hw);
 	ath5k_hw_detach(sc->ah);
 	free_irq(pdev->irq, sc);
+	pci_disable_msi(pdev);
 	pci_iounmap(pdev, sc->iobase);
 	pci_release_region(pdev, 0);
 	pci_disable_device(pdev);
-
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