Skip to content

Commit d5cc0a1

Browse files
PardhaSKbroonie
authored andcommitted
ASoC: Intel: Skylake: Disable clock gating during firmware and library download
During firmware and library download, sometimes it is observed that firmware and library download is timed-out resulting into probe failure. This patch disables dynamic clock gating while firmware and library download. Signed-off-by: Pardha Saradhi K <pardha.saradhi.kesapragada@intel.com> Signed-off-by: Sanyog Kale <sanyog.r.kale@intel.com> Signed-off-by: Guneshwor Singh <guneshwor.o.singh@intel.com> Acked-By: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 752c93a commit d5cc0a1

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

‎sound/soc/intel/skylake/skl-messages.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,11 @@ int skl_resume_dsp(struct skl *skl)
417417
if (skl->skl_sst->is_first_boot == true)
418418
return 0;
419419

420+
/* disable dynamic clock gating during fw and lib download */
421+
ctx->enable_miscbdcge(ctx->dev, false);
422+
420423
ret = skl_dsp_wake(ctx->dsp);
424+
ctx->enable_miscbdcge(ctx->dev, true);
421425
if (ret < 0)
422426
return ret;
423427

‎sound/soc/intel/skylake/skl-pcm.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,7 +1342,11 @@ static int skl_platform_soc_probe(struct snd_soc_platform *platform)
13421342
return -EIO;
13431343
}
13441344

1345+
/* disable dynamic clock gating during fw and lib download */
1346+
skl->skl_sst->enable_miscbdcge(platform->dev, false);
1347+
13451348
ret = ops->init_fw(platform->dev, skl->skl_sst);
1349+
skl->skl_sst->enable_miscbdcge(platform->dev, true);
13461350
if (ret < 0) {
13471351
dev_err(platform->dev, "Failed to boot first fw: %d\n", ret);
13481352
return ret;

0 commit comments

Comments
 (0)