Skip to content

Commit cac99f7

Browse files
hkallweittiwai
authored andcommitted
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent e3fc2fd commit cac99f7

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

sound/pci/hda/hda_intel.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,14 +1040,6 @@ static int azx_suspend(struct device *dev)
10401040
chip = card->private_data;
10411041
bus = azx_bus(chip);
10421042
azx_shutdown_chip(chip);
1043-
if (bus->irq >= 0) {
1044-
free_irq(bus->irq, chip);
1045-
bus->irq = -1;
1046-
chip->card->sync_irq = -1;
1047-
}
1048-
1049-
if (chip->msi)
1050-
pci_disable_msi(chip->pci);
10511043

10521044
trace_azx_suspend(chip);
10531045
return 0;
@@ -1062,11 +1054,6 @@ static int __maybe_unused azx_resume(struct device *dev)
10621054
return 0;
10631055

10641056
chip = card->private_data;
1065-
if (chip->msi)
1066-
if (pci_enable_msi(chip->pci) < 0)
1067-
chip->msi = 0;
1068-
if (azx_acquire_irq(chip, 1) < 0)
1069-
return -EIO;
10701057

10711058
__azx_runtime_resume(chip);
10721059

0 commit comments

Comments
 (0)