From patchwork Mon Dec 28 12:45:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 352666 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp9785145jai; Mon, 28 Dec 2020 06:24:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJxjOidx+6ts9SmG6YeGpC5j6FJT9F1tDTFxl9+fBTOhohNlI5JyxLjbOvMK6WnvVIzOqzd7 X-Received: by 2002:a05:6402:128d:: with SMTP id w13mr41711624edv.56.1609165492425; Mon, 28 Dec 2020 06:24:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609165492; cv=none; d=google.com; s=arc-20160816; b=ombRGEZ9DxkuaD5sTd0Y2erQLvKCfRvS8uznvbque0QLMorfC+psAJIiOOwNIfVcLO ys+bNokHL0p9W4wojXxPNKr4cJMJCPjobm0uuQrzIrPdPHVLOcL85+GZJjrDGO3k2tj1 +0sk4sy8QDpcQtcJtSGKJtmcWMqLO7m9WUR/0u3zd+i/LT5c47AYIX5UG3dWiaoQ5zv1 FxY6yyRScGjtxMt3wNGsdDD6XU/OoEKXHf7hGoC7kTgFjEEbrT0Z+Z0hftBZxiIb9Lbd BkQkzh8Ako6E3iR76C/gaz3fcHGcDK5ZDy1vnZEB9NnR66DeNkTW5PcOoF6yCW7uv/fE cdEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=n157QJj6+CKoGIvkBPDkuOLAt1vYGMVvW7227ogAkSE=; b=QYbFZkMNsy8hFMluciFgxTnzeuJjb89FTuXelNCMcN1spEEpRxzTBxdPT16ja0j88+ sVNq76fkIiTDzjN7mWz80FecIVCPqa7j0j23hyW4mXotOOBSNbdIrDspc6RQQvxhxiPD OWt1lqRJLZPzKoD3ewhwpN8jAnlkftfTx3WeNUzzRGaxatr057gC+Z9CBxdbaoBvq/2l fgTg6vRaL3N9zskfXXm1fAgMSEI7DWjfeaR+pgyoSRKHp9SIXScMV8LPBogNa0cdVDxM R5XKDtqYJvK4nQTz8x5Zhzs2zOI9Ar+GYiClT5BgE7mEiW3FXMqc4BHLuM1jnWausNBe GHiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=g4Onntfh; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t23si22355626edc.387.2020.12.28.06.24.52; Mon, 28 Dec 2020 06:24:52 -0800 (PST) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=g4Onntfh; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2440590AbgL1OPI (ORCPT + 14 others); Mon, 28 Dec 2020 09:15:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:49984 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2440574AbgL1OPH (ORCPT ); Mon, 28 Dec 2020 09:15:07 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id D419C207A9; Mon, 28 Dec 2020 14:14:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609164867; bh=2KPMGi7Jhkbvj3Pw9G8QplLFAWCtO5UH5lagZUDzUTE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g4OnntfhKy4At4R+XrrG/k1SrPcsaQ7RMXPXgmOdSSlia4EC7rlvks5R5ovZfyoO6 bTqdRJHGiHf5derpRyIvS+0B/fSFhrG9sZOUhH+K1TnNDcFc+FDK3euwfVd7PqJCeT 5Itfee5E7vVXxQOBN67NfmVly+2L74RAjae09El0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Srinivas Kandagatla , Mark Brown , Sasha Levin Subject: [PATCH 5.10 310/717] ASoC: q6afe-clocks: Add missing parent clock rate Date: Mon, 28 Dec 2020 13:45:08 +0100 Message-Id: <20201228125035.880100731@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Srinivas Kandagatla [ Upstream commit 7e20ae1208daaf6dad85c2dcb968fc590b6f3b99 ] setting clock rate on child clocks without a parent clock rate will result in zero clk rate for child. This also means that when audio is started dsp will attempt to access registers without enabling clock resulting in board boot up. Fix this by adding the missing parent clock rate. Fixes: 520a1c396d196 ("ASoC: q6afe-clocks: add q6afe clock controller") Signed-off-by: Srinivas Kandagatla Link: https://lore.kernel.org/r/20201204164228.1826-1-srinivas.kandagatla@linaro.org Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/qcom/qdsp6/q6afe-clocks.c | 1 + 1 file changed, 1 insertion(+) -- 2.27.0 diff --git a/sound/soc/qcom/qdsp6/q6afe-clocks.c b/sound/soc/qcom/qdsp6/q6afe-clocks.c index 2efc2eaa04243..acfc0c698f6a1 100644 --- a/sound/soc/qcom/qdsp6/q6afe-clocks.c +++ b/sound/soc/qcom/qdsp6/q6afe-clocks.c @@ -16,6 +16,7 @@ .afe_clk_id = Q6AFE_##id, \ .name = #id, \ .attributes = LPASS_CLK_ATTRIBUTE_COUPLE_NO, \ + .rate = 19200000, \ .hw.init = &(struct clk_init_data) { \ .ops = &clk_q6afe_ops, \ .name = #id, \