Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5328242ybl; Tue, 10 Dec 2019 04:18:56 -0800 (PST) X-Google-Smtp-Source: APXvYqyoMHI9yb4TqDZxXBx7YQFcDqHSpySvMF8wZVdts7z309W8i15oCaGLseoomekskD0Ukcqi X-Received: by 2002:a9d:6a4c:: with SMTP id h12mr26147611otn.81.1575980336202; Tue, 10 Dec 2019 04:18:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575980336; cv=none; d=google.com; s=arc-20160816; b=lt5rmJe7n9QyAaj93Jt5DfP2GuaHMq2+JfaQIOSe84TLEgnn5yxnuH+Zlsntxaot5Z eGgx2WKrIUTwDZ6yvbvmz+bc/dPBJoMUIeBT2elk9bCpeDieyzVDzNRsOB5uvZB6buu3 nucgQy5j1Q6+ey+/bqXCSJ6udKXssLhblyHnIj4GOSPYSbYsY55mcd7WTyFcutJWAj+y TAYhlg+I4XfJ2YcyeiN3kRnody1qwuHA2cQHMAwMU9/QnS3m3u3rrGRh0pymy+C8Z+Ba wG/o8ZtjxJtMc0N186pkjMtL4S497ew/ii7ZtQ3Kghb1WGoEUYfg9NxWaVOzFhpWuaz4 7SlA== 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=Ch5OZdVR87rr+mb/no3DHBtoDiMERiKgoFBGDINinKg=; b=jW8bdYGB763ctuZS9WAs+cEVCOc/oDBvG4YBPruWEizST+lAvQiWCAzUqTHZ310E7Z 5nyqMhVKzYPQ1uazysj/21OkQosx7ERor7tg8iSb6vBbMPY/bDf/N9Krd28Xc7dYP9yd khXIB/Py79QGiIftId5zqCzLyXVLuNsaf+Ra3G1AUR78Ul139PrynsYngHS6s+meZUz1 orT5au9LzWc0rgVysuboOQh001RV6pWJdFmAIbvC3Xfx2XmvFwPltUE6TcbHs2Px0Bc0 DCaQkGsD5VSknyO46TOAGRY0Fkh/RtT50pPDOZz5Aeuhkz7mWgqJodgKA9g7LKpu2tXH xYhA== 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 i20si1611500otk.270.2019.12.10.04.18.42; Tue, 10 Dec 2019 04:18:56 -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 S1727377AbfLJMRM (ORCPT + 99 others); Tue, 10 Dec 2019 07:17:12 -0500 Received: from foss.arm.com ([217.140.110.172]:42144 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727310AbfLJMRM (ORCPT ); Tue, 10 Dec 2019 07:17:12 -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 DD0051FB; Tue, 10 Dec 2019 04:17:11 -0800 (PST) Received: from localhost (unknown [10.37.6.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 578DD3F6CF; Tue, 10 Dec 2019 04:17:11 -0800 (PST) Date: Tue, 10 Dec 2019 12:17:09 +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: <20191210121709.GC6110@sirena.org.uk> References: <20191206075209.18068-1-hslester96@gmail.com> <20191209162417.GD5483@sirena.org.uk> <20191209170030.GH5483@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="+nBD6E3TurpgldQp" Content-Disposition: inline In-Reply-To: X-Cookie: We have ears, earther...FOUR OF THEM! 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 --+nBD6E3TurpgldQp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Dec 10, 2019 at 09:32:12AM +0800, Chuhong Yuan wrote: > On Tue, Dec 10, 2019 at 1:00 AM Mark Brown wrote: > > 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. > How about adding a check like #ifndef CONFIG_PM? > I use this in an old version of the mentioned patch. That won't handle the runtime PM problem, the state will vary depending on what the system is doing at the time. > However, that is not accepted since it seems not symmetric with enable > in the probe. > But I don't find an explicit runtime PM call in the probe here so the > revision pattern of It's got runtime PM ops though so that's clearly a bug that needs to be fixed itself. --+nBD6E3TurpgldQp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl3vjMUACgkQJNaLcl1U h9AAoAf+K6J1r4btG9IR3em9HyPA3E/jMnx1YBRDo2CJwTZfUe8rMyqJPl98cYs8 OJMbc+4U2Q2aJjjYNvLzFWwGJAA48tf4BitK3hxGRwQDK3rolg1Xb+eVEqVToLOi CQyZj5j5lvH3ZS6fSJitXTZYcgSN4jbVCoPRiG4aK7IKUMeXgcLEOb6WJIN3RDvz oJzATwyxtvjIIHiM9DpKVkAuoltOtdM1ofmMpRTbqyN/s42Oa1BgFf3tgXp/l5GY zqOLaz+1BsiADE2Yhs2q5PbzgBpeG5QfWWXykKAtByqTgau9StyQHGBG8eYt1YW1 E4y4Eguf5CGRV+9Kwxl6KsgFnycxTQ== =EXTv -----END PGP SIGNATURE----- --+nBD6E3TurpgldQp--