Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp417066yba; Thu, 18 Apr 2019 03:36:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqxnzgeDcj7gOB5uFMppP7tOcRBW9oERoZSPa2X/sQh9cdESKlfstUG3MSTNOujwZ51K5ETS X-Received: by 2002:a62:174c:: with SMTP id 73mr95496984pfx.33.1555583774055; Thu, 18 Apr 2019 03:36:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555583774; cv=none; d=google.com; s=arc-20160816; b=S6gpENJVpS3pqIHn29Vq5GU3r75aPFGFHYlOKfdF5tH9xyX6nkhdECRT4J8U9jeVEe O0p6Wp6Ku1enEwI0ZASUIp8nRImIHIwHVFxpo/UuVOM9HbCezqgjySDtdH/YUO+G1tgP 4vB/N9W94gEM2DTWi2NY4AzvNYpsHMbuUDb+aVQJwvRM3Mwdwpsj3QL26iw6O5kVneuY cZbrEEaNwcmzYrsz5/BycpWhoaCYJPEcFVIPDO/zCjjE2iDFB6C8pAI4tGPF4fnvokmS VqVLGilhckgkfbDg3W8mJiiFY+4Umpq0AtB0Ogn9+JMsPWk05l4u04pPDJ4TxXc46kjK WKYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=jixODIW8pw+6ggR18tH9r9emgy79lvO6n1FV43qKY9k=; b=n/2mN1bawW4jFCviM5lE/RLpr4Lm0n7USZNcbNxUua5ZyRU35QbiWnnpT8++Qavamb Kguc0E79Gq/zthiT6ZaWeCGOfRyj+CiCDVUGMO+7HRPIsvauKuPiW6NqSU9y4cCvedvB YiKgsgbQrBlI3szC3AztHkAi5LqyWXgOp2Bi/2RVbUZEz10qnqIeeMjliHA17xY7UN6S ew4ZkdAVQj3bfpoIcNJFOE0fjOIMsXA0LsTV/bMYIflIv7JEUbya+xLvTeI/wK3vpP8e pIq8J1JCza3UC3EcX/WVU/5VPoiuQlw/DUxBQLxssyues2CnIJ/xnv6xl++9BoZqEE/K ssbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=W8oTxVl2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a2si1493477pgw.545.2019.04.18.03.35.58; Thu, 18 Apr 2019 03:36:14 -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; dkim=pass header.i=@nxp.com header.s=selector1 header.b=W8oTxVl2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388548AbfDRKP1 (ORCPT + 99 others); Thu, 18 Apr 2019 06:15:27 -0400 Received: from mail-eopbgr50068.outbound.protection.outlook.com ([40.107.5.68]:9718 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388410AbfDRKP1 (ORCPT ); Thu, 18 Apr 2019 06:15:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jixODIW8pw+6ggR18tH9r9emgy79lvO6n1FV43qKY9k=; b=W8oTxVl2KkA0I3MmgjE0Gd0S6IS0a0vSTZV+MSxzaZp6N+WUqbIZt2L9bZZ8Q0yhz/PYePFfDQ/C/O77PzRsVmLy3LnVUVbrJQ6yY6l4HUd7cc4i7e1xk8NUEno1GJ4wOVAy8sp8sRCj2BZFPKUjUX8uQAL4mDqp3nPFalWD2tw= Received: from VE1PR04MB6479.eurprd04.prod.outlook.com (20.179.233.80) by VE1PR04MB6558.eurprd04.prod.outlook.com (20.179.234.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1813.12; Thu, 18 Apr 2019 10:15:24 +0000 Received: from VE1PR04MB6479.eurprd04.prod.outlook.com ([fe80::6c03:86ad:729d:e311]) by VE1PR04MB6479.eurprd04.prod.outlook.com ([fe80::6c03:86ad:729d:e311%7]) with mapi id 15.20.1813.013; Thu, 18 Apr 2019 10:15:24 +0000 From: "S.j. Wang" To: Mark Brown , Nicolin Chen CC: "timur@kernel.org" , "Xiubo.Lee@gmail.com" , "festevam@gmail.com" , "alsa-devel@alsa-project.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] ASoC: fsl_esai: Add pm runtime function Thread-Topic: [PATCH] ASoC: fsl_esai: Add pm runtime function Thread-Index: AdT1ypcqA/llSPsbRmq55oyxQR4hRA== Date: Thu, 18 Apr 2019 10:15:24 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=shengjiu.wang@nxp.com; x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 3000a2cf-4fa3-490f-bc99-08d6c3e6c5b2 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:VE1PR04MB6558; x-ms-traffictypediagnostic: VE1PR04MB6558: x-microsoft-antispam-prvs: x-forefront-prvs: 0011612A55 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(346002)(39860400002)(366004)(136003)(376002)(199004)(189003)(53936002)(7696005)(7736002)(3846002)(6246003)(6116002)(476003)(305945005)(74316002)(2906002)(99286004)(54906003)(25786009)(71200400001)(110136005)(71190400001)(316002)(14454004)(229853002)(478600001)(86362001)(6506007)(97736004)(5660300002)(26005)(52536014)(186003)(102836004)(4326008)(6436002)(66066001)(9686003)(55016002)(33656002)(8676002)(81166006)(486006)(81156014)(68736007)(14444005)(256004)(8936002);DIR:OUT;SFP:1101;SCL:1;SRVR:VE1PR04MB6558;H:VE1PR04MB6479.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: lyAFyVJRNq0GJOHv4igPGNOMd+SSCde7OkwjLGrYIkVp45ZTmjMLvDAuPy7yFfsLODuuSZA0ii0ZPHhAbCOPHtOzyTzjeka8UWkNFhrO2HcJ2poDW2CcIcznC4NykKbCK5p9m5lwGt1aYOPLm0stY/vtDgYPD46G2DKdPjcOR6K1ANwG4D4tXCjAOs88aeuD1L0TnPmCGAHP6K1hCFhQP2SRtAIzjVUz/ZUu05/nI0QHy5K8k3/bYLF0/Bck+swfuV12O/QbkjcpSfVgi3+ifbe9u4zjLy2agd4BF2BvTP0E9aPbBJPIMSkg+olspLRQJl7a33L0/4E3Vw4i8sED/M90MJusVZJvMtG+1PxatJ2lu5DHeHcFIpIdJvsJS+34kalRlCn6+aIALWR4TtCjJsy3J7hTIjwJW7h7KywlfYc= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3000a2cf-4fa3-490f-bc99-08d6c3e6c5b2 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Apr 2019 10:15:24.5222 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6558 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi >=20 > On Thu, Apr 18, 2019 at 02:00:12AM -0700, Nicolin Chen wrote: > > On Thu, Apr 18, 2019 at 03:29:09AM +0000, S.j. Wang wrote: >=20 > > > In imx8 when systerm enter suspend state, the power of subsystem > > > will be off, the clock enable state will be lost and register > > > configuration >=20 > > Just for curiosity, we had similar situation on imx6sx, so we added > > suspend/resume with regcache. Why will the clock enable state be lost > > too? Does CCM on imx8 (might not be called CCM > > though) have any difference? What about clock rate settings? >=20 > That sounds like a bug somewhere else - I'd expect that after resume the > clocking would be restored to the state it was in before suspend. There is limitation in our internal design. That is in imx8 the power of subsystem will be disabled at suspend, include the clock state , clock rate= .=20 I should not add it in comments, please ignore them, I will change the description. This patch is to enable the pm runtime, so I think it is better to move th= e clock operation to pm runtime, and close the clock at suspend to reduce the power. Best regards Wang shengjiu