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
417 if (skl->skl_sst->is_first_boot == true)417 if (skl->skl_sst->is_first_boot == true)
418 return 0;418 return 0;
419 419
420 /* disable dynamic clock gating during fw and lib download */
421 ctx->enable_miscbdcge(ctx->dev, false);
422
420 ret = skl_dsp_wake(ctx->dsp);423 ret = skl_dsp_wake(ctx->dsp);
424 ctx->enable_miscbdcge(ctx->dev, true);
421 if (ret < 0)425 if (ret < 0)
422 return ret;426 return ret;
423 427
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
1342 return -EIO;1342 return -EIO;
1343 }1343 }
1344 1344
1345 /* disable dynamic clock gating during fw and lib download */
1346 skl->skl_sst->enable_miscbdcge(platform->dev, false);
1347
1345 ret = ops->init_fw(platform->dev, skl->skl_sst);1348 ret = ops->init_fw(platform->dev, skl->skl_sst);
1349 skl->skl_sst->enable_miscbdcge(platform->dev, true);
1346 if (ret < 0) {1350 if (ret < 0) {
1347 dev_err(platform->dev, "Failed to boot first fw: %d\n", ret);1351 dev_err(platform->dev, "Failed to boot first fw: %d\n", ret);
1348 return ret;1352 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