Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp255569pxf; Wed, 24 Mar 2021 04:31:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSEHNubG+AfGWYl0t0PQwfd93Zz8dpZbz0qNS8+R1GBZ/IvpXqWJqRNBku2i9Z2+XScVwQ X-Received: by 2002:a05:6402:888:: with SMTP id e8mr2852432edy.51.1616585509743; Wed, 24 Mar 2021 04:31:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616585509; cv=none; d=google.com; s=arc-20160816; b=XYf6/H4/BGIwe1ZIIShINrEgCKhqMInB86lU2JYHfCPBuJMQqY0t3YHEp/K0Fb3XEu 6RnBy+hjYvkT/HPGkLaxlzkzkB1vlArQALTHnY4kGBxT4BPQn/LvL7rU0HsbSKozavzQ RmmrlR/DOtR73XPNbFBe6pcVlxIciiKTg87B9fwqj8q8QDuUIX5WJuzrCQ+8h5+kSUlw /eyy5KdRtEfUNrXC1AUDtAg8MrbGYoBIdvSP/igwPqPHWPK4x/+qO7qRpw7QP5fXvfef 3JHyjrEEMXg0MqKidaSCt+W6gM047etv6PTIixM99803rgIqAD/UDVh1KZkjc0gmGliY d5NA== 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=sfU/ZFsYfBxifTwwW98pNTV5s43w7F+k/le1RK61Jrw=; b=tFwq5p1n8FTEauObIqD82cXPpNbpCOLhcXdRhfMJxUVYgaCho/AAumuxNRR6lBmnV0 QWq4SMrBMBqHJgNrkqhD7lSMBB4mD3aoeWLql27LjLhYruUmWSvGZO1zeqjchdNptiGC uOt8VBeVdYuUhZAdJAjbtbGTxzwFlUONjmRRQsOPo1x8YTM8uTQzAA9I+njzaH8E1NR8 2Nqr2mgpsWnMukT70cTyVZ1GfVNhiAdMvPOIZrG/H6YVPOxv9wYOq3m/PNhfLrh/a66Q 435DYQF32ohwLQXCgYmSkcCsGsqR+xJSvl8Jw2FLVWQ39ZrbYvRPaqTkcX6jFYIZejMV QxJw== 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 v10si1535364eds.85.2021.03.24.04.31.26; Wed, 24 Mar 2021 04:31:49 -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 S233178AbhCXKNY (ORCPT + 99 others); Wed, 24 Mar 2021 06:13:24 -0400 Received: from inva021.nxp.com ([92.121.34.21]:36508 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229716AbhCXKNE (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 86608202748; 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 7D23320273F; 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 21B2040340; Wed, 24 Mar 2021 11:12:35 +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 5/6] ASoC: fsl_audmix: Don't use devm_regmap_init_mmio_clk Date: Wed, 24 Mar 2021 17:58:47 +0800 Message-Id: <1616579928-22428-6-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 ipg 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_audmix.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl_audmix.c b/sound/soc/fsl/fsl_audmix.c index 8dc44dec7956..f931288e256c 100644 --- a/sound/soc/fsl/fsl_audmix.c +++ b/sound/soc/fsl/fsl_audmix.c @@ -476,8 +476,7 @@ static int fsl_audmix_probe(struct platform_device *pdev) if (IS_ERR(regs)) return PTR_ERR(regs); - priv->regmap = devm_regmap_init_mmio_clk(dev, "ipg", regs, - &fsl_audmix_regmap_config); + priv->regmap = devm_regmap_init_mmio(dev, regs, &fsl_audmix_regmap_config); if (IS_ERR(priv->regmap)) { dev_err(dev, "failed to init regmap\n"); return PTR_ERR(priv->regmap); -- 2.27.0