clear-pkgs-linux-iot-lts2018/0729-Revert-ASoC-Intel-Skyl...

69 lines
2.3 KiB
Diff

From 69ec43476b8ba152744a55605df18ba26ba107eb Mon Sep 17 00:00:00 2001
From: Cezary Rojewski <cezary.rojewski@intel.com>
Date: Fri, 12 Oct 2018 16:04:51 +0200
Subject: [PATCH 729/743] Revert "ASoC: Intel: Skylake: Avoid sending IPCs
during the crash recovery"
Currently implemented recovery flow for Skylake and child platforms is
invalid. During suspend/ resume (D3 -> D0) flow, driver incorrectly
awaits FW_READY nofitication when firmware is already loaded and
DSP cores are up and running, thus causing timeout and failure
of D0 process.
This patch is a part of patchset that reverts this implementation until
appropriate one is available.
Change-Id: I2c99f6f4e39b46e379f2a97aa857d17d991f049f
Tracked-On: OAM-71679
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
---
sound/soc/intel/common/sst-ipc.c | 4 ----
sound/soc/intel/skylake/skl-topology.c | 6 ------
2 files changed, 10 deletions(-)
diff --git a/sound/soc/intel/common/sst-ipc.c b/sound/soc/intel/common/sst-ipc.c
index 0037e21f0b69..e5d2df719548 100644
--- a/sound/soc/intel/common/sst-ipc.c
+++ b/sound/soc/intel/common/sst-ipc.c
@@ -98,10 +98,6 @@ static int ipc_tx_message(struct sst_generic_ipc *ipc, u64 header,
struct ipc_message *msg;
unsigned long flags;
- if (ipc->dsp->is_recovery) {
- dev_dbg(ipc->dev, "Recovery in progress..\n");
- return 0;
- }
spin_lock_irqsave(&ipc->dsp->spinlock, flags);
msg = msg_get_empty(ipc);
diff --git a/sound/soc/intel/skylake/skl-topology.c b/sound/soc/intel/skylake/skl-topology.c
index 9b6e3bfc464d..35dc1b071ff7 100644
--- a/sound/soc/intel/skylake/skl-topology.c
+++ b/sound/soc/intel/skylake/skl-topology.c
@@ -1972,13 +1972,9 @@ static int skl_tplg_mixer_event(struct snd_soc_dapm_widget *w,
return skl_tplg_mixer_dapm_post_pmu_event(w, skl);
case SND_SOC_DAPM_PRE_PMD:
- if (!(is_skl_dsp_running(skl->skl_sst->dsp)))
- return 0;
return skl_tplg_mixer_dapm_pre_pmd_event(w, skl);
case SND_SOC_DAPM_POST_PMD:
- if (!(is_skl_dsp_running(skl->skl_sst->dsp)))
- return 0;
return skl_tplg_mixer_dapm_post_pmd_event(w, skl);
}
@@ -2003,8 +1999,6 @@ static int skl_tplg_pga_event(struct snd_soc_dapm_widget *w,
return skl_tplg_pga_dapm_pre_pmu_event(w, skl);
case SND_SOC_DAPM_POST_PMD:
- if (!(is_skl_dsp_running(skl->skl_sst->dsp)))
- return 0;
return skl_tplg_pga_dapm_post_pmd_event(w, skl);
}
--
2.19.2