diff options
author | Charles Keepax <ckeepax@opensource.wolfsonmicro.com> | 2015-12-29 16:25:13 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-12-30 16:48:13 +0000 |
commit | 783513eec3209542fcd6ac0cbcb030b3c17a4827 (patch) | |
tree | 5fc9e0b95a11e500efe7e1f1addff5fc56853913 /drivers/phy/Makefile | |
parent | 8005c49d9aea74d382f474ce11afbbc7d7130bec (diff) | |
download | talos-obmc-linux-783513eec3209542fcd6ac0cbcb030b3c17a4827.tar.gz talos-obmc-linux-783513eec3209542fcd6ac0cbcb030b3c17a4827.zip |
ASoC: Use nested lock for snd_soc_dapm_mutex_lock
snd_soc_dapm_mutex_lock currently uses the un-nested call which can
cause lockdep warnings when called from control handlers (a relatively
common usage) and using modules. As creating the control causes a
potential mutex inversion with the handler, creating the control will
take the controls_rwsem under the dapm_mutex and accessing the control
will take the dapm_mutex under controls_rwsem.
All the users look like they want to be using the runtime class of the
lock anyway, so this patch just changes snd_soc_dapm_mutex_lock to use
the nested call, with the SND_SOC_DAPM_CLASS_RUNTIME class.
Fixes: f6d5e586b416 ("ASoC: dapm: Add helpers to lock/unlock DAPM mutex")
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/phy/Makefile')
0 files changed, 0 insertions, 0 deletions