[PATCH 4.9 36/71] ALSA: hda/tegra: clear pending irq handlers
From: Greg Kroah-Hartman
Date: Mon Jan 07 2019 - 08:07:18 EST
4.9-stable review patch. If anyone has any objections, please let me know.
From: Sameer Pujar <spujar@xxxxxxxxxx>
commit 63d2a9ec310d8bcc955574220d4631aa55c1a80c upstream.
Even after disabling interrupts on the module, it could be possible
that irq handlers are still running. System hang is seen during
suspend path. It was found that, there were pending writes on the
HDA bus and clock was disabled by that time.
Above mentioned issue is fixed by clearing any pending irq handlers
before disabling clocks and returning from hda suspend.
Suggested-by: Mohan Kumar <mkumard@xxxxxxxxxx>
Suggested-by: Dara Ramesh <dramesh@xxxxxxxxxx>
Signed-off-by: Sameer Pujar <spujar@xxxxxxxxxx>
Signed-off-by: Takashi Iwai <tiwai@xxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
sound/pci/hda/hda_tegra.c | 2 ++
1 file changed, 2 insertions(+)
@@ -249,10 +249,12 @@ static int hda_tegra_suspend(struct devi
struct snd_card *card = dev_get_drvdata(dev);
struct azx *chip = card->private_data;
struct hda_tegra *hda = container_of(chip, struct hda_tegra, chip);
+ struct hdac_bus *bus = azx_bus(chip);