Commit d8796595 authored by Joonwoo Park's avatar Joonwoo Park
Browse files

ASoC: wcd9xxx: Fix MBHC irq handler deadlock scenario



There is a chance to encounter deadlock when either electrical mbhc irq
or mechanical mbhc irq releases resource lock to let polling thread finish
its job.  This is due to the possibility of one irq handler can preempt
already running the other type of irq handler.
Introduce a new mutex to avoid this preemption.

CRs-fixed: 428653
Change-Id: Idf24c62224026c9c061de12c31e248c05b47de9d
Signed-off-by: default avatarJoonwoo Park <joonwoop@codeaurora.org>
parent 3fcc34b7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment