ALSA: hda/tegra: clear pending irq handlers
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 <firstname.lastname@example.org>
Suggested-by: Dara Ramesh <email@example.com>
Signed-off-by: Sameer Pujar <firstname.lastname@example.org>
Signed-off-by: Takashi Iwai <email@example.com>
[bwh: Backported to 3.16:
- Use azx::irq instead of hdac_bus::irq
- Adjust context]
Signed-off-by: Ben Hutchings <firstname.lastname@example.org>
1 file changed