All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vinod Koul <vinod.koul@intel.com>
To: Guneshwor Singh <guneshwor.o.singh@intel.com>
Cc: ALSA <alsa-devel@alsa-project.org>, Takashi Iwai <tiwai@suse.de>,
	Pardha Saradhi K <pardha.saradhi.kesapragada@intel.com>,
	Liam Girdwood <liam.r.girdwood@linux.intel.com>,
	Patches Audio <patches.audio@intel.com>,
	Mark Brown <broonie@kernel.org>,
	Sanyog Kale <sanyog.r.kale@intel.com>
Subject: Re: [PATCH] ASoC: Intel: Skylake: Disable clock gating during firmware and library download
Date: Tue, 2 Jan 2018 16:14:37 +0530	[thread overview]
Message-ID: <20180102104437.GA18649@localhost> (raw)
In-Reply-To: <20180102092957.14091-1-guneshwor.o.singh@intel.com>

On Tue, Jan 02, 2018 at 02:59:57PM +0530, Guneshwor Singh wrote:
> From: Pardha Saradhi K <pardha.saradhi.kesapragada@intel.com>
> 
> 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>

> ---
>  sound/soc/intel/skylake/skl-messages.c | 4 ++++
>  sound/soc/intel/skylake/skl-pcm.c      | 4 ++++
>  2 files changed, 8 insertions(+)
> 
> diff --git a/sound/soc/intel/skylake/skl-messages.c b/sound/soc/intel/skylake/skl-messages.c
> index 81ee1118ed71..8cbf080c38b3 100644
> --- a/sound/soc/intel/skylake/skl-messages.c
> +++ b/sound/soc/intel/skylake/skl-messages.c
> @@ -417,7 +417,11 @@ int skl_resume_dsp(struct skl *skl)
>  	if (skl->skl_sst->is_first_boot == true)
>  		return 0;
>  
> +	/* disable dynamic clock gating during fw and lib download */
> +	ctx->enable_miscbdcge(ctx->dev, false);
> +
>  	ret = skl_dsp_wake(ctx->dsp);
> +	ctx->enable_miscbdcge(ctx->dev, true);
>  	if (ret < 0)
>  		return ret;
>  
> diff --git a/sound/soc/intel/skylake/skl-pcm.c b/sound/soc/intel/skylake/skl-pcm.c
> index 8d0895b409b5..e46828533826 100644
> --- a/sound/soc/intel/skylake/skl-pcm.c
> +++ b/sound/soc/intel/skylake/skl-pcm.c
> @@ -1343,7 +1343,11 @@ static int skl_platform_soc_probe(struct snd_soc_platform *platform)
>  			return -EIO;
>  		}
>  
> +		/* disable dynamic clock gating during fw and lib download */
> +		skl->skl_sst->enable_miscbdcge(platform->dev, false);
> +
>  		ret = ops->init_fw(platform->dev, skl->skl_sst);
> +		skl->skl_sst->enable_miscbdcge(platform->dev, true);
>  		if (ret < 0) {
>  			dev_err(platform->dev, "Failed to boot first fw: %d\n", ret);
>  			return ret;
> -- 
> 2.15.1
> 

-- 
~Vinod

  reply	other threads:[~2018-01-02 10:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-02  9:29 [PATCH] ASoC: Intel: Skylake: Disable clock gating during firmware and library download Guneshwor Singh
2018-01-02 10:44 ` Vinod Koul [this message]
2018-01-03 12:12 ` Applied "ASoC: Intel: Skylake: Disable clock gating during firmware and library download" to the asoc tree Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180102104437.GA18649@localhost \
    --to=vinod.koul@intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=guneshwor.o.singh@intel.com \
    --cc=liam.r.girdwood@linux.intel.com \
    --cc=pardha.saradhi.kesapragada@intel.com \
    --cc=patches.audio@intel.com \
    --cc=sanyog.r.kale@intel.com \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.