diff options
author | Aditya Bavanari <abavanar@codeaurora.org> | 2020-04-16 11:16:12 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2020-05-14 06:35:32 -0700 |
commit | 8abed769af2e0a112ff6664d8fbdb684b3c338b9 (patch) | |
tree | 56b16903fb12b5d6349dad6b03c054b2249d5b05 /soc | |
parent | 1038df1f062f935cc44c463c7dbb63934b80cca8 (diff) | |
download | msm-extra-8abed769af2e0a112ff6664d8fbdb684b3c338b9.tar.gz |
soc: pinctrl-lpi: Add 100msec before resetting hw votes
Add 100msec delay before resetting hw vote counts in
SSR up sequence in order to ensure AVS is up when
votes are requested.
Change-Id: I0f46c60555f6bf833b1cac76f86a54afdcb78ba0
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
Diffstat (limited to 'soc')
-rw-r--r-- | soc/pinctrl-lpi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/soc/pinctrl-lpi.c b/soc/pinctrl-lpi.c index 0b0eef5a..3258b10f 100644 --- a/soc/pinctrl-lpi.c +++ b/soc/pinctrl-lpi.c @@ -15,6 +15,7 @@ #include <linux/types.h> #include <linux/clk.h> #include <linux/bitops.h> +#include <linux/delay.h> #include <soc/snd_event.h> #include <dsp/digital-cdc-rsc-mgr.h> #include <linux/pm_runtime.h> @@ -489,6 +490,8 @@ static int lpi_notifier_service_cb(struct notifier_block *this, /* Reset HW votes after SSR */ if (!lpi_dev_up) { + /* Add 100ms sleep to ensure AVS is up after SSR */ + msleep(100); if (state->lpass_core_hw_vote) digital_cdc_rsc_mgr_hw_vote_reset( state->lpass_core_hw_vote); |