From 816aa56f44bc9caeed33d7b44cac8bdda4ae8646 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Mon, 21 Aug 2023 19:12:15 +0200 Subject: [PATCH] 4.14-stable patches added patches: asoc-rt5665-add-missed-regulator_bulk_disable.patch --- ...65-add-missed-regulator_bulk_disable.patch | 33 +++++++++++++++++++ queue-4.14/series | 1 + 2 files changed, 34 insertions(+) create mode 100644 queue-4.14/asoc-rt5665-add-missed-regulator_bulk_disable.patch diff --git a/queue-4.14/asoc-rt5665-add-missed-regulator_bulk_disable.patch b/queue-4.14/asoc-rt5665-add-missed-regulator_bulk_disable.patch new file mode 100644 index 00000000000..521cd04f042 --- /dev/null +++ b/queue-4.14/asoc-rt5665-add-missed-regulator_bulk_disable.patch @@ -0,0 +1,33 @@ +From c163108e706909570f8aa9aa5bcf6806e2b4c98c Mon Sep 17 00:00:00 2001 +From: Zhang Shurong +Date: Tue, 1 Aug 2023 23:59:11 +0800 +Subject: ASoC: rt5665: add missed regulator_bulk_disable + +From: Zhang Shurong + +commit c163108e706909570f8aa9aa5bcf6806e2b4c98c upstream. + +The driver forgets to call regulator_bulk_disable() + +Add the missed call to fix it. + +Fixes: 33ada14a26c8 ("ASoC: add rt5665 codec driver") +Signed-off-by: Zhang Shurong +Link: https://lore.kernel.org/r/tencent_A560D01E3E0A00A85A12F137E4B5205B3508@qq.com +Signed-off-by: Mark Brown +Signed-off-by: Greg Kroah-Hartman +--- + sound/soc/codecs/rt5665.c | 2 ++ + 1 file changed, 2 insertions(+) + +--- a/sound/soc/codecs/rt5665.c ++++ b/sound/soc/codecs/rt5665.c +@@ -4957,6 +4957,8 @@ static void rt5665_i2c_shutdown(struct i + struct rt5665_priv *rt5665 = i2c_get_clientdata(client); + + regmap_write(rt5665->regmap, RT5665_RESET, 0); ++ ++ regulator_bulk_disable(ARRAY_SIZE(rt5665->supplies), rt5665->supplies); + } + + #ifdef CONFIG_OF diff --git a/queue-4.14/series b/queue-4.14/series index 4fbedc5e6ec..9488a325fff 100644 --- a/queue-4.14/series +++ b/queue-4.14/series @@ -33,3 +33,4 @@ serial-8250-fix-oops-for-port-pm-on-uart_change_pm.patch binder-fix-memory-leak-in-binder_init.patch test_firmware-prevent-race-conditions-by-a-correct-implementation-of-locking.patch netfilter-set-default-timeout-to-3-secs-for-sctp-shutdown-send-and-recv-state.patch +asoc-rt5665-add-missed-regulator_bulk_disable.patch -- 2.47.3