Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1406842pxb; Wed, 10 Feb 2021 07:43:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJx4iOfQkjoTPXUzKTSCcIRr9x1W5SgIvCwftucdWru8U0yF30v+2rdYLoNAo2KWhZiwAj1g X-Received: by 2002:a17:906:40f:: with SMTP id d15mr3576716eja.522.1612971800113; Wed, 10 Feb 2021 07:43:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612971800; cv=none; d=google.com; s=arc-20160816; b=gNbLcyDxNpo15hEddgEe7d5A4tA2Ze535cvh5jnlyLRiElMku+H82kgk9VGDjR4X5P kFUgQVBAO1BWKydfnwSAnzoVq+O4Un7uAZWy5vx4tAi/TwPcJaEF2tT5SJ78SnWIL7uU qiZRQmg//71TtWoOfWOU2xxNzxLFj3X71HkQVu3VKo0M4fPj7EB3nge2sMvmzVjm8KWw VLUyuDXJE3g9cWZ0+Szr8Rbm2jv8hmwk085UAcqELFqG0AwNpqNzd+pyvV5c0+DTsIT1 GV2bS7TVhEhsBsyScfBbDxg4kmbOcEUU4KRmhrUOsH4pFwWOIEr03q0z5pgYxTZ3RKFH /FWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=CyWeyNy0XWkvwc4BloOyQkbLsRKSIY8lyH4Rsl3w4PI=; b=ccwHZNfJuFT0QTfMMRDZoi9+0yKdEFI1lONs0LW1htBi28QK+88fyK39qXStyo5cV7 /x/STckk6dw9FQRuqU8cOcpRn94ldqWSAFtKeH2c5PqSXOaRaecqtk31mLmsLhE77NW7 chYeLm4f0AbohvHbNPBfu44I9NCc+tGs6iN3+y45F3vV0ak8e3qRIAGSZ2QEMMmXzlPh oYp2zaN19tkFGYKU99jdQ2v204Za9ykzew+a/l5Xk19NQw5KiZzjRpTQj9Nc4ErG+bqo VBMupxnPYypPOUBg8dr7T+FoWeC5r3RUNc7nR9u7Ym4K2hggREUamDf7+6Pj5G2rQeYY jg6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NzWmVUto; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v12si1526350ejb.566.2021.02.10.07.42.55; Wed, 10 Feb 2021 07:43:20 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NzWmVUto; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231668AbhBJPjp (ORCPT + 99 others); Wed, 10 Feb 2021 10:39:45 -0500 Received: from mail.kernel.org ([198.145.29.99]:49182 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230048AbhBJPjl (ORCPT ); Wed, 10 Feb 2021 10:39:41 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 47C2764DA5; Wed, 10 Feb 2021 15:39:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612971540; bh=UmFQ9LVN1sbDvFGlexMO9nwDPmQ4xxV03atwcYGV+pw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NzWmVUtoGG76LVFlqhysU3JpLDxUvQBi6njFUh6JGOkt6CbjseqgqzAqS+HaHdmfk T1XuWkdk5zPEx/9xLQaTza0Y/MeMuhnXGQ4ZsJ1nrkY6ndPKGqYONNd+4tyv0TPcbp cbTzyicTC7YJi5IoUYNq2rNOYtPl7ZEzN0Q5t4ehLU+WA4UMrHzZqJmn9pA3a2U+9H NBhxOfNGPwfhxZ/Ib+CGKBuIqxeO//97USv+mY2rIxCb/00SToRpINZm6S17fFaTU+ v8WCV+RHf2qZ5VNRVkQKCHeHDm0eiJO/6xl+e0xoybXefr16H/iFnlXkR/9geyt2Xr kUKg94zDyIa6w== Date: Wed, 10 Feb 2021 15:38:08 +0000 From: Mark Brown To: Shengjiu Wang Cc: Shengjiu Wang , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , alsa-devel@alsa-project.org, Timur Tabi , Liam Girdwood , linuxppc-dev@lists.ozlabs.org, Xiubo Li , linux-kernel , Takashi Iwai , Nicolin Chen , Rob Herring , Fabio Estevam Subject: Re: [PATCH v2 2/7] ASoC: fsl_rpmsg: Add CPU DAI driver for audio base on rpmsg Message-ID: <20210210153808.GB4748@sirena.org.uk> References: <1612693435-31418-1-git-send-email-shengjiu.wang@nxp.com> <1612693435-31418-3-git-send-email-shengjiu.wang@nxp.com> <20210208115112.GD8645@sirena.org.uk> <20210209222953.GF4916@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="tsOsTdHNUZQcU9Ye" Content-Disposition: inline In-Reply-To: X-Cookie: Are we live or on tape? User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --tsOsTdHNUZQcU9Ye Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 10, 2021 at 02:35:29PM +0800, Shengjiu Wang wrote: > On Wed, Feb 10, 2021 at 6:30 AM Mark Brown wrote: > > Like I say I'd actually recommend moving this control to DAPM. > I may understand your point, you suggest to use the .set_bias_level > interface. But in my case I need to enable the clock in earlier stage > and keep the clock on when system go to suspend. The device can be kept alive over system suspend if that's needed, or possibly it sounds like runtime PM is a better fit? There's callbacks in the core to keep the device runtime PM enabled while it's open which is probably about the time range you're looking for. > I am not sure .set_bias_level can met my requirement. we start > the Chinese new year holiday now, so currently I can't do test for this > recommendation. > Maybe we can keep current implementation, can we? > Later after I do the test, I can submit another patch for it. Well, the current version is clearly going to leak clock enables with valid userspace so=20 --tsOsTdHNUZQcU9Ye Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmAj/d8ACgkQJNaLcl1U h9DudQf/TaziP/3fIA/+VtOM1vmRz+Y+qg+fko13UVOigl8UEJA/n+4WEegQRoJG uDTO557iKp/JwY4o5tXxXQxGZhGMhhDg3MDhWbWx0QJ9y/bMhD4R+sZ421eYHwLI 0cjTI9P2I+EiYtMsTICqZgFmEtR+wJHwtJyXTWaIXDPtJYCJuxGBK4mIxn+2YO72 yXEhmkzRVFDFSMhOR0aPUfAD7yMMvRP8UM0R7VBtwXavEtV9ZHrMqxkibnoMt8oX ONd0cWMywupFjGVZQalfZJyHmnawloUrOg6V5NU5pS7dvIyMgUCgqcwg+8STUDRF /ynzOHGXxgiNb5x9zte6dG9YVbs3vw== =A1BK -----END PGP SIGNATURE----- --tsOsTdHNUZQcU9Ye--