Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp401739yba; Thu, 18 Apr 2019 03:18:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqwYzUmVL1PKR5CUNgGWQKUWTNSQMrygJ9qhHyh+6XMzIneaEj6bjjxcFmkgUYEnMnJnWXXn X-Received: by 2002:aa7:8092:: with SMTP id v18mr93092941pff.35.1555582711093; Thu, 18 Apr 2019 03:18:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555582711; cv=none; d=google.com; s=arc-20160816; b=XjV7ue/EGy+56FRFn/PqJY+PUHyIhn0w470oHjBs/M+5e0TgKn1faqqGHf2TAptabs Hcbs3y6CjM5lSvNaum91ZydUQ/65XgkSFoId8EBhZ27Z5aYEpoXVNW1+13hMAnPqNLI1 j6x4hU+Jpj/oxj/q7en4NtvyaO21N/mV14OR3Ewh7I9AVlGoh0zB5khJl4w/bneNRI9U Z3U0cp29w06d1ssKoSDGtzgvUIUXNq0QcP0Vt8SCV3/+IjO9/3VPCQQ6wlgHZKWSd1Ns rUF1hSuPvlrkkelbJmvh+Lk+bhuu/zNe31wB0PpOwo2+bHt2xtQsZYfdzlPvFCrJamrc JxFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=JD6h6osV+7D86EHSdv9rURcI17z2pKxgpc4vwqVQclU=; b=OqyJkqWS/PJlAtGi7uEghmLa1xlbFgskZNyRKqcBwaQsK40ZCTf3g2qRpbpLiF8Qd4 NuHmX18W0GvVuUXFvkcqo0ivHRXRzO71JZBRw22VxqVaCSrDZYgSM1SNXAX5z6FwMITq jDRMP6idg/F3Wz+mkt8MgLAEO4g5fVOBaRwLHZxZ60miAwHczcWZ6144rxRTOYFKFC8y K5fz9FgG0jnIsExhu3OIPDfOaFzj+HP0cWYT99FUwUfzt3QIWYJlyiJXTx/oz6Ju5c19 KrokKItccCPDpxTnCNuH2JrdD68q9FY/TAh9BFBDebdmn0DV9gUickSTiYAxxCMaez6w Sydg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=nicGyneX; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t17si1604070pgi.180.2019.04.18.03.18.16; Thu, 18 Apr 2019 03:18:31 -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=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=nicGyneX; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388488AbfDRKR0 (ORCPT + 99 others); Thu, 18 Apr 2019 06:17:26 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:57274 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387519AbfDRKR0 (ORCPT ); Thu, 18 Apr 2019 06:17:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=JD6h6osV+7D86EHSdv9rURcI17z2pKxgpc4vwqVQclU=; b=nicGyneXhND0IPZiUYi0quIPA QEANuQe4Mv/ZMuBijmfu5XlDmzGRTvgOkvJaVhNzw0xwigJ2HdCqgWeQ1xDL6A6fsOJYgeYDrn1Rc IE8IVAy2DBrMoiHShxpmKtgxvNKScOX+VZepEWmzYMTwJAyhBbDDIOMLhz6N5ox7xo5Co=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1hH46U-0001ST-7R; Thu, 18 Apr 2019 10:17:14 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id BE4E31126DA9; Thu, 18 Apr 2019 11:17:13 +0100 (BST) Date: Thu, 18 Apr 2019 11:17:13 +0100 From: Mark Brown To: "S.j. Wang" Cc: Nicolin Chen , "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 Message-ID: <20190418101713.GD6702@sirena.org.uk> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="IMjqdzrDRly81ofr" Content-Disposition: inline In-Reply-To: X-Cookie: A watched clock never boils. User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --IMjqdzrDRly81ofr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 18, 2019 at 10:15:24AM +0000, S.j. Wang wrote: > > 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: > > > 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? > > 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 ra= te.=20 Right, that's fairly normal but usually it'd be restored as part of the resume process? > This patch is to enable the pm runtime, so I think it is better to move = the > clock operation to pm runtime, and close the clock at suspend to reduce > the power. It's definitely good to turn the clock off as much as possible, yes. --IMjqdzrDRly81ofr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAly4TqkACgkQJNaLcl1U h9ALKAgAhnvp9dsorOBOcQOXt2Vq+2KD6GhkpwRpRuLi546nZ9RcO9/ADIT31G4a CPIpTSxmQcE7gESw935EGIhfsg7hySIHmOn0gR/6Jxmp4bOzb8RX+CMZQ1t9PzV7 aWtKsRrHdnIvlg0U0ua6M/ZslqxRTqdJH6rjKOu60lhS+QmeT19wj1kWe2xoP3e1 KUkoMMzdYj0dD6X5DjbjTDi5M2NX1NfVoqAbMclgwQ/A5TSqTSB7y+sktSjRWWEM YoaFvHpTL/VVfw/Kq6ixXpH1qzLEeSZ++TE3DN7L1m88lXouS1QpcY4Whjsqb9K2 WPl704mTbAKcfAieB4Dilba/VD5CPA== =ioaN -----END PGP SIGNATURE----- --IMjqdzrDRly81ofr--