Received: by 10.192.165.156 with SMTP id m28csp51289imm; Tue, 10 Apr 2018 16:11:23 -0700 (PDT) X-Google-Smtp-Source: AIpwx48u+fr31+wkouP9q1WYA7sDQsB+f1efFmviQkYpDq5B/nJHcVrVFS9IXKuLbA8JzfpBe8uv X-Received: by 10.98.234.6 with SMTP id t6mr1971612pfh.38.1523401883315; Tue, 10 Apr 2018 16:11:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523401883; cv=none; d=google.com; s=arc-20160816; b=AfH0CGFpxlAWwDww3GA7KTOMrLqcFLXZI/hBrkdSblMFfeuOad9AUtZ7FJOjRLxHuu JEwLavXpR8kCJwY19v0ACMgWYJN6Wyv+Kaiwvy9PTbhIReHVz8dTKRRaVH6+3x1wyteV ywoy4b+G91Yi7IPNb7yPDXRDL3d67WtQkLkMpunRrnTpYu+A7/l+ykxHyn1D1P3rl1N8 cMYmXE3lHT3fDWSTsqE9QGA1dvWNopfi8H8BzgUWWGvCOYwat4ACfccDdvBXZRm/9kzj BmV1rvDNbomEfR/4R9Mf2NzvfNxvC4IIbtqIvFSlrpQhjZaaU4wuo2jk5LgdlXs0GI9J 1OAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=QWw6eyN3TQBXT4XdurzOEfL4sKq1fcLKvVMGjdhm904=; b=ITBeErWw39R2m+6Ou35uEofuEaA2YyBNqqGuck4egcsa/KsjR7iFFdq8SYDHWpCprA MOaN1D0GFcugiRbIEW9UqAznqo33VKD8hjTWLlf/+BZ0TVhuQYAjiPr205KbbwPLKIlM i/lTM/Jh/fKAFytunsvdTLd9hBsXiy45nl2LZs52uNmy9BsWeLh05mKYWaKbQngKxMUz 39tww0kYLTNTvmlxpoeWlS5Os/6HCH5kCRpEjU38E4SRb5wJCytQUgHGsQn+2Py3N42L wktPWdBQObZojjGWcNZduUeqnvHSHOvRref+Y050NhHFMBrFFq1sdZ+yS5jZSdXy83XV 7y0A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r26si2500317pgu.422.2018.04.10.16.10.46; Tue, 10 Apr 2018 16:11:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755836AbeDJXCv (ORCPT + 99 others); Tue, 10 Apr 2018 19:02:51 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:41990 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754363AbeDJWfH (ORCPT ); Tue, 10 Apr 2018 18:35:07 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 89725DBB; Tue, 10 Apr 2018 22:35:06 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Pardha Saradhi K , Sanyog Kale , Guneshwor Singh , Vinod Koul , Mark Brown , Sasha Levin Subject: [PATCH 4.14 027/138] ASoC: Intel: Skylake: Disable clock gating during firmware and library download Date: Wed, 11 Apr 2018 00:23:37 +0200 Message-Id: <20180410212905.288150316@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180410212902.121524696@linuxfoundation.org> References: <20180410212902.121524696@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Pardha Saradhi K [ Upstream commit d5cc0a1fcbb5ddbef9fdd4c4a978da3254ddbf37 ] 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 Signed-off-by: Sanyog Kale Signed-off-by: Guneshwor Singh Acked-By: Vinod Koul Signed-off-by: Mark Brown Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- sound/soc/intel/skylake/skl-messages.c | 4 ++++ sound/soc/intel/skylake/skl-pcm.c | 4 ++++ 2 files changed, 8 insertions(+) --- a/sound/soc/intel/skylake/skl-messages.c +++ b/sound/soc/intel/skylake/skl-messages.c @@ -404,7 +404,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; --- a/sound/soc/intel/skylake/skl-pcm.c +++ b/sound/soc/intel/skylake/skl-pcm.c @@ -1332,7 +1332,11 @@ static int skl_platform_soc_probe(struct 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;