Commit 37465c8a authored by Michael Karcher's avatar Michael Karcher Committed by John W. Linville

ath5k: Don't fiddle with MSI on suspend/resume.

Commit 256b152b (ath5k: don't enable
MSI, we cannot handle it yet) has removed msi support, but overlooked
the suspend/resume code. This patch completes msi removal.

I don't consider this patch copyrightable, and thus put it into the
public domain. The result is of course a base.c file dual-licensed under
3-clause-BSD and GPL.
Signed-off-by: default avatarMichael Karcher <kernel@mkarcher.dialup.fu-berlin.de>
Acked-by: default avatarNick Kossifidis <mickflemm@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 7f37441c
...@@ -587,7 +587,6 @@ ath5k_pci_suspend(struct pci_dev *pdev, pm_message_t state) ...@@ -587,7 +587,6 @@ ath5k_pci_suspend(struct pci_dev *pdev, pm_message_t state)
ath5k_stop_hw(sc); ath5k_stop_hw(sc);
free_irq(pdev->irq, sc); free_irq(pdev->irq, sc);
pci_disable_msi(pdev);
pci_save_state(pdev); pci_save_state(pdev);
pci_disable_device(pdev); pci_disable_device(pdev);
pci_set_power_state(pdev, PCI_D3hot); pci_set_power_state(pdev, PCI_D3hot);
...@@ -616,12 +615,10 @@ ath5k_pci_resume(struct pci_dev *pdev) ...@@ -616,12 +615,10 @@ ath5k_pci_resume(struct pci_dev *pdev)
*/ */
pci_write_config_byte(pdev, 0x41, 0); pci_write_config_byte(pdev, 0x41, 0);
pci_enable_msi(pdev);
err = request_irq(pdev->irq, ath5k_intr, IRQF_SHARED, "ath", sc); err = request_irq(pdev->irq, ath5k_intr, IRQF_SHARED, "ath", sc);
if (err) { if (err) {
ATH5K_ERR(sc, "request_irq failed\n"); ATH5K_ERR(sc, "request_irq failed\n");
goto err_msi; goto err_no_irq;
} }
err = ath5k_init(sc); err = ath5k_init(sc);
...@@ -642,8 +639,7 @@ ath5k_pci_resume(struct pci_dev *pdev) ...@@ -642,8 +639,7 @@ ath5k_pci_resume(struct pci_dev *pdev)
return 0; return 0;
err_irq: err_irq:
free_irq(pdev->irq, sc); free_irq(pdev->irq, sc);
err_msi: err_no_irq:
pci_disable_msi(pdev);
pci_disable_device(pdev); pci_disable_device(pdev);
return err; return err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment