Received: by 10.192.165.156 with SMTP id m28csp70552imm; Tue, 10 Apr 2018 16:38:51 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+Q2vr8B5TF1y8edyABobtkvrTiLvqhcQQ2ZXo8ug6gq/SU8AF/K810uAKG7qGruvd5SABR X-Received: by 2002:a17:902:4303:: with SMTP id i3-v6mr2466222pld.302.1523403531399; Tue, 10 Apr 2018 16:38:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523403531; cv=none; d=google.com; s=arc-20160816; b=f1PgqROqq4leDf/Buqrs0TvJMzxj/oFwfQ7+ZYyiNnjCIZMP5USR51ee2HanG+D1oL dWkkvAi3blKS9oJMcHSNfHitN3pnjZAdH9AVj/EfQQ1nVr8G5KcDI2DuRv4Mo+u6/3up TOnsQKRM28fYW1RTbWVpsEbvxE2Bx/mj0n6zCGxB7/QTuBmRLNhKZJKh6r25CjnC5nj0 JCslnhHkkp7NnbOSetO/8BGT5/wo4U1hhnR/F8+EsHjVXYaNdKVf0DzaUNp+E/W2Lta2 h/pemiKSQ6ymcn3xZf2x1+vZjWpQKe1jC44PlfEWWAaLs7oay23jh06D9whWDEZlVXKK uAOQ== 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=wNSvMDusv8VVTXWdnu1GBO8Wjb9pjUGpRPffoFcNK74=; b=Gl3rheS4CalDRrbPzdU3yVXlGQDHbjZf01kQCMf8czvc4u6tvouQcJ+KMZQTVtzDGb 1NdxnuMUGzjJfjss60q5UZbTI95DeXwco0RPMJve9hCqCfOUpaAE2YLBvMR1JSgIu794 2MhvhAiNamVlBXrajkqGSltLiS7xYAjG1eq0gzb4TaHQBeVFXFPZHiDaa4KwDHoKkwdg 9wXibProCkxUF0Ltrbx9/Wi4U5AGBFuE8bEvSV//uxsb1lXEzMuApB0xCFxVirwCq5Nm pW3DRBhdGGeeKKFvjm1xBaBxRi8rcaRNeJa1QrpKfvovQsEJQnMYieSZ2sfMmlgsKDnY OiSA== 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 u17si2429810pgv.383.2018.04.10.16.38.14; Tue, 10 Apr 2018 16:38:51 -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 S1754483AbeDJXeC (ORCPT + 99 others); Tue, 10 Apr 2018 19:34:02 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:38818 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753938AbeDJW2M (ORCPT ); Tue, 10 Apr 2018 18:28:12 -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 63E6FD1E; Tue, 10 Apr 2018 22:28:11 +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.15 034/168] ASoC: Intel: Skylake: Disable clock gating during firmware and library download Date: Wed, 11 Apr 2018 00:22:56 +0200 Message-Id: <20180410212801.648223132@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180410212800.144079021@linuxfoundation.org> References: <20180410212800.144079021@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.15-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 @@ -1343,7 +1343,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;