From: Mark Brown Date: Mon, 12 Mar 2012 16:31:50 +0000 (+0000) Subject: ASoC: wm8994: Prevent ABBA deadlock with CODEC and accdet mutexes X-Git-Tag: v3.4-rc1~88^2^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c986564b3115ebd24a907515ac0b7ca2bef794f9;p=pandora-kernel.git ASoC: wm8994: Prevent ABBA deadlock with CODEC and accdet mutexes Currently we can the accdet mutex from within DAPM when updating the device state which means we take accdet then the CODEC mutex but we also do the locking the other way around when responding to the jackdet IRQ. Move all the jackdet use of the CODEC mutex out of the accdet lock to avoid this. Since all the DAPM interactions depend only on a single threaded IRQ this is still serialised. The locking improvements in 3.5 allow a better solution there. Signed-off-by: Mark Brown --- Reading git-diff-tree failed