History

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.

Pardha Saradhi K committed 8 years ago

Commit d5cc0a11 parent 752c93a2 files · +8 −0Browse files

Unified · Split

2 files
  1. sound/soc/intel/skylake/skl-messages.c +4 −0
  2. sound/soc/intel/skylake/skl-pcm.c +4 −0
sound/soc/intel/skylake/skl-messages.c+4−0
@@ -417,7 +417,11 @@ int skl_resume_dsp(struct skl *skl) · 416 unmodified lines
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+4−0
@@ -1342,7 +1342,11 @@ static int skl_platform_soc_probe(struct snd_soc_platform *platform) · 1341 unmodified lines
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;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t