19 May
2015
19 May
'15
2:11 p.m.
On Mon, May 18, 2015 at 10:34:03AM +0800, John Lin wrote:
rt5645_set_jack_detect() is usually called from snd_soc_dai_link.init() and it calls snd_soc_jack_report() from rt5645_irq_detection() if jack is inserted. snd_soc_jack_report() results in kernel hang if it is called from a context which cannot sleep.
Applied, thanks - I rather suspect this is a case of trying to reacquire the same lock rather than being called from a context that can't sleep though, we shouldn't be doing device init in atomic context.