mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 10:59:18 -04:00
ALSA: hda: intel: Don't free interrupt when suspending
There's no need to free/re-request the interrupt on system suspend. PCI core takes care, using functions like pci_restore_msi_state(). Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Link: https://patch.msgid.link/1b7e109b-eb69-4542-8022-4ac8f9116474@gmail.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
committed by
Takashi Iwai
parent
e3fc2fd77c
commit
cac99f73f0
@@ -1040,14 +1040,6 @@ static int azx_suspend(struct device *dev)
|
|||||||
chip = card->private_data;
|
chip = card->private_data;
|
||||||
bus = azx_bus(chip);
|
bus = azx_bus(chip);
|
||||||
azx_shutdown_chip(chip);
|
azx_shutdown_chip(chip);
|
||||||
if (bus->irq >= 0) {
|
|
||||||
free_irq(bus->irq, chip);
|
|
||||||
bus->irq = -1;
|
|
||||||
chip->card->sync_irq = -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (chip->msi)
|
|
||||||
pci_disable_msi(chip->pci);
|
|
||||||
|
|
||||||
trace_azx_suspend(chip);
|
trace_azx_suspend(chip);
|
||||||
return 0;
|
return 0;
|
||||||
@@ -1062,11 +1054,6 @@ static int __maybe_unused azx_resume(struct device *dev)
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
chip = card->private_data;
|
chip = card->private_data;
|
||||||
if (chip->msi)
|
|
||||||
if (pci_enable_msi(chip->pci) < 0)
|
|
||||||
chip->msi = 0;
|
|
||||||
if (azx_acquire_irq(chip, 1) < 0)
|
|
||||||
return -EIO;
|
|
||||||
|
|
||||||
__azx_runtime_resume(chip);
|
__azx_runtime_resume(chip);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user