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.
Unified · Split
| @@ -417,7 +417,11 @@ int skl_resume_dsp(struct skl *skl) · 416 unmodified lines | ||
| 417 | 417 | if (skl->skl_sst->is_first_boot == true) |
| 418 | 418 | return 0; |
| 419 | 419 | |
| 420 | + /* disable dynamic clock gating during fw and lib download */ | |
| 421 | + ctx->enable_miscbdcge(ctx->dev, false); | |
| 422 | + | |
| 420 | 423 | ret = skl_dsp_wake(ctx->dsp); |
| 424 | + ctx->enable_miscbdcge(ctx->dev, true); | |
| 421 | 425 | if (ret < 0) |
| 422 | 426 | return ret; |
| 423 | 427 | |
| @@ -1342,7 +1342,11 @@ static int skl_platform_soc_probe(struct snd_soc_platform *platform) · 1341 unmodified lines | ||
| 1342 | 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 | 1348 | ret = ops->init_fw(platform->dev, skl->skl_sst); |
| 1349 | + skl->skl_sst->enable_miscbdcge(platform->dev, true); | |
| 1346 | 1350 | if (ret < 0) { |
| 1347 | 1351 | dev_err(platform->dev, "Failed to boot first fw: %d\n", ret); |
| 1348 | 1352 | return ret; |