Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp25783pxf; Wed, 24 Mar 2021 19:46:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFHVZwtt+12edVp8ruocVljhl8W2vznFoD3iI/PAZjm5z/MuFlasL+088TnwktDL+wyEbZ X-Received: by 2002:a17:906:bccc:: with SMTP id lw12mr6830549ejb.268.1616640379691; Wed, 24 Mar 2021 19:46:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616640379; cv=none; d=google.com; s=arc-20160816; b=LuJTE3ZMHadiLtbmob8FiX2rYrVm970bWoSwF4+ChxDWsQqEzOMGFJddO71WPxkstN O4L0gWcIlxqYX8osETv7uCpVzPpqb/rEotxTZJSw41sT1YR9VRmbbvmIMlihHJTjl9BL Gd+Kb6mz3afEsTSJ/GmaYpBeEU57buK3LXeVuhwxrsUKn/OmKb171CQAWaEegIjBZui1 Z15wtej/NacRaM7o+d/Fw4pwUkNt3I5Q6jm86+YmHITwFCKPSoUy+rW9Q2nVTXc0o27f ODzB9RpY68GKJSMoBb8Ru6NRj+E/3c3LeLxuFYQ91c+XR2NwD2rIAXb77ELFG8kxbCeb is6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=9lWo9Z+SyYTLs/eYlFo+gELFyc6CwUsQ2DtM6fKrsaQ=; b=pajETf0BWRCUgynL/IHFeQZq26AjWobWRyo9Ba7bmvLdoPQVMmlvTGhwV1IJyF/qqu nWzbc/F3fpicUjnqL3Fj8Wr47AC/BVaRUyOluw2PmxC3QE5xt+9XR5Mer2qyI1ieePBB kTJ3e+q2k4VkuMQI3hlZH2QDzoRgbS6bDrDFabkofM+aYZ5y292KelxPRc4jjcogVDE9 2Q8ilmWtRjOS8V+KQ53ISlYYrIqAVfXJKwViCsRgAZ3WdW2AaEp0vrBSQpNbU63NQynK x25PVYvgJZjMYJWL5GXajEnTdKs14lrzPFOnlFPyAH5hYx5V6QKWSDKMJSXSgjo7PGIL MCJw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z8si2931122edd.550.2021.03.24.19.45.56; Wed, 24 Mar 2021 19:46:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235523AbhCXKNa (ORCPT + 99 others); Wed, 24 Mar 2021 06:13:30 -0400 Received: from inva021.nxp.com ([92.121.34.21]:36510 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230006AbhCXKNE (ORCPT ); Wed, 24 Mar 2021 06:13:04 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 86EB120274A; Wed, 24 Mar 2021 11:13:03 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 6F0C8202727; Wed, 24 Mar 2021 11:12:59 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id C7AF34033B; Wed, 24 Mar 2021 11:12:31 +0100 (CET) From: Shengjiu Wang To: timur@kernel.org, nicoleotsuka@gmail.com, Xiubo.Lee@gmail.com, festevam@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/6] ASoC: fsl_spdif: Don't use devm_regmap_init_mmio_clk Date: Wed, 24 Mar 2021 17:58:44 +0800 Message-Id: <1616579928-22428-3-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1616579928-22428-1-git-send-email-shengjiu.wang@nxp.com> References: <1616579928-22428-1-git-send-email-shengjiu.wang@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When there is power domain bind with core clock, The call flow: devm_regmap_init_mmio_clk - clk_prepare() - clk_pm_runtime_get() cause the power domain of clock always be enabled after regmap_init(). which impact the power consumption. So use devm_regmap_init_mmio instead of devm_regmap_init_mmio_clk,but explicitly enable clock when it is used. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_spdif.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl_spdif.c b/sound/soc/fsl/fsl_spdif.c index 1cd3441d1c03..c631de325a6e 100644 --- a/sound/soc/fsl/fsl_spdif.c +++ b/sound/soc/fsl/fsl_spdif.c @@ -1294,8 +1294,7 @@ static int fsl_spdif_probe(struct platform_device *pdev) if (IS_ERR(regs)) return PTR_ERR(regs); - spdif_priv->regmap = devm_regmap_init_mmio_clk(&pdev->dev, - "core", regs, &fsl_spdif_regmap_config); + spdif_priv->regmap = devm_regmap_init_mmio(&pdev->dev, regs, &fsl_spdif_regmap_config); if (IS_ERR(spdif_priv->regmap)) { dev_err(&pdev->dev, "regmap init failed\n"); return PTR_ERR(spdif_priv->regmap); -- 2.27.0