Skip to content

Commit 13661fc

Browse files
committed
ALSA: hda: Flush pending unsolicited events before suspend
The HD-audio controller driver processes the unsolicited events via its work asynchronously, and this might be pending when the system goes to suspend. When a lengthy event handling like ELD byte reads is running, this might trigger unexpected accesses among suspend/resume procedure, typically seen with Nvidia driver that still requires the handling via unsolicited event verbs for ELD updates. This patch adds the flush of unsol_work to assure that pending events are processed before going into suspend. Buglink: https://bugzilla.suse.com/show_bug.cgi?id=1182377 Reported-and-tested-by: Abhishek Sahu <[email protected]> Cc: <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent c5aa956 commit 13661fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sound/pci/hda/hda_intel.c

+2
Original file line numberDiff line numberDiff line change
@@ -1026,6 +1026,8 @@ static int azx_prepare(struct device *dev)
10261026
chip = card->private_data;
10271027
chip->pm_prepared = 1;
10281028

1029+
flush_work(&azx_bus(chip)->unsol_work);
1030+
10291031
/* HDA controller always requires different WAKEEN for runtime suspend
10301032
* and system suspend, so don't use direct-complete here.
10311033
*/

0 commit comments

Comments
 (0)