Skip to content
Commit 636aa880 authored by Mohan Kumar's avatar Mohan Kumar Committed by Takashi Iwai
Browse files

ALSA: hda: Fix crash due to jack poll in suspend



With jackpoll_in_suspend flag set, there is a possibility that
jack poll worker thread will run even after system suspend was
completed. Any register access after system pm callback flow
will result in kernel crash as still jack poll worker thread
tries to access registers.

To fix the crash issue during system flow, cancel the jack poll
worker thread during system pm prepare callback and cancel the
worker thread at start of runtime suspend callback and re-schedule
at last to avoid any unwarranted access of register by worker thread
during suspend flow.

Signed-off-by: default avatarMohan Kumar <mkumard@nvidia.com>
Fixes: b33115bd

 ("ALSA: hda: Jack detection poll in suspend state")
Link: https://lore.kernel.org/r/20220811052704.2944-1-mkumard@nvidia.com
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 74bba640
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment