Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp26628pxf; Wed, 24 Mar 2021 19:48:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzy94L3JxyKFL27FqplWrlNGSpGE7DOTn7IpUOlhYqNYYqOd6pglYH9aWg5QaTxngGTMBjM X-Received: by 2002:a17:906:b752:: with SMTP id fx18mr7213152ejb.128.1616640499880; Wed, 24 Mar 2021 19:48:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616640499; cv=none; d=google.com; s=arc-20160816; b=zGtYGW74ZKi1oI0rouNXisorYF79MOIAupVPbxChfjU+TGeBM2FVnk8zzmMO74gkaB Fdh7R3rcBzzORTGyWWtQAEnfQHdXpAMA4UCscwLFOX92Wx0dy5M08zH9VojmA6uRcsGO xHX0S1NsnQISsJg/7OnwWJSs7AeQiD4kS0a/55ugDy5zBmlWmPoRfQLctglTwYeLO5ix yUtcy6DAUPaU5sNqSJyfpi9tWrV+V2ngt7fTqeSQSGHScNhxYVUjpHbolqcJl98fMq4T ywdT0KwyCLD7HTSFeu5p6rytTeEiaHJgxQqZRgx0Hszn82QRWXp6gR5huc+FyJ5+SPTD 1+Yg== 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=q7J0h11j6ZEXDlkn2bTk+WTbCo3M1gxZHARtHQzO8AI=; b=HyQtwBeKFMq1Rg0QEpnByOlPL4Bd6hO7zXPGizb1E0bgr8nKP7lSjUSQy07Uh6ihpE Apdn94S/Lnx1FG++3qnq3pWE/vs5Qe9cw9IrUCAUVDB2/vZdW8qGjyt/SePSkyvWEnLE zoh2qhKKrPnCalMtL53t6HlMFh79LkzY3jDPuHE+igSfSHAM7NhVeO8Q+0Qmg9010Hpn +5lGNf13LeS+9kMqwOhBgo7PuzH1Sxb1Y9ukFbWDpjO5Qm7xj5vlLiEfEvyhUcaegIUa 2KXOiQiooi4XFV20OpOsV7UddbKnKcC9tvwb1IqRd7ZYrMxROkBZa30PDjN03heZb67Q Wdew== 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 l12si3269064edi.290.2021.03.24.19.47.57; Wed, 24 Mar 2021 19:48: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 S235559AbhCXKNd (ORCPT + 99 others); Wed, 24 Mar 2021 06:13:33 -0400 Received: from inva020.nxp.com ([92.121.34.13]:35892 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230232AbhCXKNH (ORCPT ); Wed, 24 Mar 2021 06:13:07 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 840281A27E6; 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 inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 7CBA61A27E1; 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 ECDE64033E; Wed, 24 Mar 2021 11:12:33 +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 4/6] ASoC: fsl_easrc: Don't use devm_regmap_init_mmio_clk Date: Wed, 24 Mar 2021 17:58:46 +0800 Message-Id: <1616579928-22428-5-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 mem 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_easrc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl_easrc.c b/sound/soc/fsl/fsl_easrc.c index 600e0d670ca6..5e33afe87c4a 100644 --- a/sound/soc/fsl/fsl_easrc.c +++ b/sound/soc/fsl/fsl_easrc.c @@ -1896,8 +1896,7 @@ static int fsl_easrc_probe(struct platform_device *pdev) easrc->paddr = res->start; - easrc->regmap = devm_regmap_init_mmio_clk(dev, "mem", regs, - &fsl_easrc_regmap_config); + easrc->regmap = devm_regmap_init_mmio(dev, regs, &fsl_easrc_regmap_config); if (IS_ERR(easrc->regmap)) { dev_err(dev, "failed to init regmap"); return PTR_ERR(easrc->regmap); -- 2.27.0