ASoC: codecs: rt5682: initialize mutex before using
Subsystems (3)
PATCH 1/1 ASoC: codecs: rt5682: initialize mutex before using
From: Xun Zhang <[email protected]>
In rt5682 codec driver, a mutex called "calibrate_mutex" is used in rt5682_calibrate() before initialization, which causes warning in lock debug. Move the initialization before the usage of mutex.
--- sound/soc/codecs/rt5682.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/rt5682.c +1 -1
@@ -2588,6 +2588,7 @@ static int rt5682_i2c_probe(struct i2c_client *i2c,rt5682_reset (rt5682->regmap); +mutex_init (&rt5682->calibrate_mutex);rt5682_calibrate (rt5682); ret = regmap_multi_reg_write(rt5682->regmap, patch_list,
@@ -2654,7 +2655,6 @@ static int rt5682_i2c_probe(struct i2c_client *i2c,INIT_DELAYED_WORK (&rt5682->jd_check_work, rt5682_jd_check_handler); -mutex_init (&rt5682->calibrate_mutex);if (i2c->irq) { ret = devm_request_threaded_irq(&i2c->dev, i2c->irq, NULL,
Signature · 1 line
2.17.1
Mark Brown
maintainerApplied "ASoC: codecs: rt5682: initialize mutex before using" to the asoc tree
The patch
ASoC: codecs: rt5682: initialize mutex before using
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.1
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
c46ab1510de1d3dd9871ae36fbec0da3e0d2d6c5Mon Sep 17 00:00:00 2001
From: Xun Zhang <[email protected]>
Date: Fri, 19 Apr 2019 15:53:49 -0500
Subject: [PATCH] ASoC: codecs: rt5682: initialize mutex before using
In rt5682 codec driver, a mutex called "calibrate_mutex" is used in rt5682_calibrate() before initialization, which causes warning in lock debug. Move the initialization before the usage of mutex.
--- sound/soc/codecs/rt5682.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/rt5682.c +1 -1
@@ -2588,6 +2588,7 @@ static int rt5682_i2c_probe(struct i2c_client *i2c,rt5682_reset (rt5682->regmap); +mutex_init (&rt5682->calibrate_mutex);rt5682_calibrate (rt5682); ret = regmap_multi_reg_write(rt5682->regmap, patch_list,
@@ -2654,7 +2655,6 @@ static int rt5682_i2c_probe(struct i2c_client *i2c,INIT_DELAYED_WORK (&rt5682->jd_check_work, rt5682_jd_check_handler); -mutex_init (&rt5682->calibrate_mutex);if (i2c->irq) { ret = devm_request_threaded_irq(&i2c->dev, i2c->irq, NULL,
Signature · 1 line
2.20.1
Mark Brown
maintainerApplied "ASoC: codecs: rt5682: initialize mutex before using" to the asoc tree
In reply to Pierre-Louis BossartThe patch
ASoC: codecs: rt5682: initialize mutex before using
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.1
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
c46ab1510de1d3dd9871ae36fbec0da3e0d2d6c5Mon Sep 17 00:00:00 2001
From: Xun Zhang <[email protected]>
Date: Fri, 19 Apr 2019 15:53:49 -0500
Subject: [PATCH] ASoC: codecs: rt5682: initialize mutex before using
In rt5682 codec driver, a mutex called "calibrate_mutex" is used in rt5682_calibrate() before initialization, which causes warning in lock debug. Move the initialization before the usage of mutex.
--- sound/soc/codecs/rt5682.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/rt5682.c +1 -1
@@ -2588,6 +2588,7 @@ static int rt5682_i2c_probe(struct i2c_client *i2c,rt5682_reset (rt5682->regmap); +mutex_init (&rt5682->calibrate_mutex);rt5682_calibrate (rt5682); ret = regmap_multi_reg_write(rt5682->regmap, patch_list,
@@ -2654,7 +2655,6 @@ static int rt5682_i2c_probe(struct i2c_client *i2c,INIT_DELAYED_WORK (&rt5682->jd_check_work, rt5682_jd_check_handler); -mutex_init (&rt5682->calibrate_mutex);if (i2c->irq) { ret = devm_request_threaded_irq(&i2c->dev, i2c->irq, NULL,
Signature · 1 line
2.20.1