Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4329032ybl; Mon, 9 Dec 2019 09:02:41 -0800 (PST) X-Google-Smtp-Source: APXvYqy6pSiNNE088g2jEHi33GYmjTv0AG0wa7XcSLYZ6mpHgAsTa2J1wpwFeg6CxxOArWEO7bYb X-Received: by 2002:a9d:6e12:: with SMTP id e18mr20803934otr.47.1575910961590; Mon, 09 Dec 2019 09:02:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575910961; cv=none; d=google.com; s=arc-20160816; b=Sl4xzedX0iVTY+FyvEvIxroah1NlZetboqJrWtX4YfeyZSUfwCQmllMWBj1ATsxWEW sZgcTR3w5gSJJ5UU748QMf8+5EYZHTjtSxuz6hvZijWTzgD0xki1UYSE4h3DoaJRZ/0I 5dsoNcTA1do3YiCQkVxdCe8xuhfUR7iNfyeDmmf8a/XWrLMY4YtUE9l+mMW4Db3ctgL8 8Neq6nfQOJkylmfd1F5U4GCi6cKjm27ty+alqpgiw9zuiVxPpxWPV+fyxbhJ6EIGbTf8 iycTuitOEwXa4FHeH24+PGe3z5BZM8xp5mi5VqhGSr2MhOApnjgwkAYMVsXrCfyUvdBF VcwQ== 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; bh=gBqpFF9qFFQ1qr6bgBte3StvSTHDGlHqtriImrDtzEk=; b=Mjh7PsQUSL3CxeEyKJZpNYhWX6p7Mt8tBEUxkdTSLbqrAh2qnrWADv6j+6FxZ50Sy7 ZjSenIMXph3b9WfzcJQYMhoeucCxRq4Axz4bIBmpJ9JAcMPWcFH3T9jMk5uHNI1f0JB9 hsbRb5V1xgMt5itmgq8M/oZbFPqCJKJCypmddORnanVCHYaUO7HLx6IpUpfqSFiQf7ux k/nEJwXOa+STag2eSQ+byWt032IZtGChtsLX+YnhW9u6GWxuzddfOwjB/F8dSRqqJPvJ xQWqXkszpILeEHJJZkiaD4JqnLB5rLtiZv8l5gSOfTT6ckXRG6WFCV6SIV2jdXDHGMkE Y8WQ== ARC-Authentication-Results: i=1; mx.google.com; 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 r6si136154otq.95.2019.12.09.09.02.29; Mon, 09 Dec 2019 09:02:41 -0800 (PST) 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; 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 S1726881AbfLIRAd (ORCPT + 99 others); Mon, 9 Dec 2019 12:00:33 -0500 Received: from foss.arm.com ([217.140.110.172]:38564 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726847AbfLIRAd (ORCPT ); Mon, 9 Dec 2019 12:00:33 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 418FA1FB; Mon, 9 Dec 2019 09:00:32 -0800 (PST) Received: from localhost (unknown [10.37.6.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B39F33F6CF; Mon, 9 Dec 2019 09:00:31 -0800 (PST) Date: Mon, 9 Dec 2019 17:00:30 +0000 From: Mark Brown To: Chuhong Yuan Cc: Brian Austin , Paul Handrigan , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , James Schulman , alsa-devel@alsa-project.org, LKML Subject: Re: [PATCH] ASoC: cs42l42: add missed regulator_bulk_disable in remove and fix probe failure Message-ID: <20191209170030.GH5483@sirena.org.uk> References: <20191206075209.18068-1-hslester96@gmail.com> <20191209162417.GD5483@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="WIIRZ1HQ6FgrlPgb" Content-Disposition: inline In-Reply-To: X-Cookie: We read to say that we have read. 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 --WIIRZ1HQ6FgrlPgb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Dec 10, 2019 at 12:52:30AM +0800, Chuhong Yuan wrote: > I have a question that what if CONFIG_PM is not defined? > Since I have met runtime PM before in the patch > a31eda65ba21 ("net: fec: fix clock count mis-match"). > I learned there that in some cases CONFIG_PM is not defined so runtime PM > cannot take effect. > Therefore, undo operations should still exist in remove functions. There's also the case where runtime PM is there and the device is active at suspend - it's not that there isn't a problem, it's that we can't unconditionally do a disable because we don't know if there was a matching enable. It'll need to be conditional on the runtime PM state. --WIIRZ1HQ6FgrlPgb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl3ufa0ACgkQJNaLcl1U h9BFrgf+KMBI9l2Ruzln5WCg+/ELdsLj2dDgAlFZSOigICoPdgNnXzqk8gYIZxsb 5y5Q4mUcWncbjNq7PuWG/ddIonFPKyPhKb/h/xrdgbTPfqqEekryLHW93SS+sAiG mLktyFWuPyvZOifDWfaFwYc1jzwsslgOweJOEoOw+fofsPlxe/3R8oom4zfpwdDV KUUxIC5hEKjUfPTpOVdw+7Ud7JpFm7uR1qtd6LptcIOb+UO7FPm6EQhrkl0thiGd fKGcPx/t3f/Xjn23+Nw3WmV+gSUX9t6wqsouwWB83Capsb4N3SMw7HFOPcy0S5vV rB45x3AzVSeKCCSIKs1IywlYcsUO7w== =feWL -----END PGP SIGNATURE----- --WIIRZ1HQ6FgrlPgb--