Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4289489ybl; Mon, 9 Dec 2019 08:24:02 -0800 (PST) X-Google-Smtp-Source: APXvYqwI5BPv7lgqayCObEp6zq314FAVhlX0f9HMDoMMAup+pOkmoBhlkRReqkT5wZIKrVycKa2B X-Received: by 2002:a05:6808:618:: with SMTP id y24mr23915155oih.86.1575908642614; Mon, 09 Dec 2019 08:24:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575908642; cv=none; d=google.com; s=arc-20160816; b=DtMwjkq2UhqmFIrLcGvYldy9jYEImb7VHrbFqupDbU7oPnVHCD1lttdhEHcMbkopsT jbqpPEyY16PpRVkg0gQ9Fq+JfIEgxdbhErbbwVFDwXaZaJyTjHquWEC8gPck99QlAsFP nhGqdZNLWN9zVcap+hNIoEqEHeLZlnvHBiIE+TTKydxVDWWRmCxIqQ8P3c5GYo+8xzcj lK1MyeYRlQ4/npbPXOfj8pE2Xtge/IP/8IlndFbMKjLD6OObeMlTH/2drDeyzFjoFOv/ 4W0aMcQN9l9UCQIXa0e4CZ/Bqfir6TOY/Do1gaj2oiXK9gIdLTuBuPqVLSRe5FlnJA37 AAkA== 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=zRRaUdqO59WioW20MMAWOvu1B4V1tZ6vs36rbw5Ee6c=; b=W910PMXXf04dBB2Rgz6Uhozbt+DR8GZAVKUhKi5PgCgcxp5TGE3rUrmBtosfPYXT9i eXIepd8Ou8yZJygExKmOB5O89tMJV/wAGfY12k7O81Q+fIzxwBMDSeCfamGhwuE/DLfe BGlj50ilYWzAaNNfgCNqWs1H5KrXZWZ9x8enqP2TDe1Km1flJRHNpR+bi90icRNruaEQ pgWeixbOYe7dweHbSJOmEf8C0ei4xMiLPZSOHy/czo8DuABN9Xy0cxNyj+jVUqAL99Lf vWuxIajC9F5EFY0zYnfHW7Y3M78ZVQBlBT37C6STbxYlWnDVBr8m2fJyG7kgYm+uZAIw 0pIw== 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 f16si31217otp.198.2019.12.09.08.23.50; Mon, 09 Dec 2019 08:24:02 -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 S1726916AbfLIQWh (ORCPT + 99 others); Mon, 9 Dec 2019 11:22:37 -0500 Received: from foss.arm.com ([217.140.110.172]:37422 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726265AbfLIQWh (ORCPT ); Mon, 9 Dec 2019 11:22:37 -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 909FF1FB; Mon, 9 Dec 2019 08:22:36 -0800 (PST) Received: from localhost (unknown [10.37.6.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0D5E63F718; Mon, 9 Dec 2019 08:22:35 -0800 (PST) Date: Mon, 9 Dec 2019 16:22:34 +0000 From: Mark Brown To: Chuhong Yuan Cc: Brian Austin , Paul Handrigan , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ASoC: cs35l32: add missed regulator_bulk_disable in remove Message-ID: <20191209162234.GC5483@sirena.org.uk> References: <20191206075146.18011-1-hslester96@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="CblX+4bnyfN0pR09" Content-Disposition: inline In-Reply-To: <20191206075146.18011-1-hslester96@gmail.com> 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 --CblX+4bnyfN0pR09 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 06, 2019 at 03:51:46PM +0800, Chuhong Yuan wrote: > @@ -501,6 +501,8 @@ static int cs35l32_i2c_remove(struct i2c_client *i2c_= client) > /* Hold down reset */ > gpiod_set_value_cansleep(cs35l32->reset_gpio, 0); > =20 > + regulator_bulk_disable(ARRAY_SIZE(cs35l32->supplies), > + cs35l32->supplies); This is a similar situation to the one Charles pointed out - the driver is using runtime PM to manage the regulators so unless the device is active when removed the regulators won't be enabled. --CblX+4bnyfN0pR09 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl3udMkACgkQJNaLcl1U h9AU4Qf9H2kZfcwmeY5MnJNJT2wlY1Tz0Bn4avIuaWh6VHTc2FK9mHpLixpWBCeL lviOMF4oPXUBhG28OeW33WoWQ2ZYPKyUFEZqRAmy/UYFFRhk8yJHjtrgwcD3GrGz bFNKyeixLFD2s1a+P6mlTotWCHm3coCexdV3PnvdstSIIgyCPm/NmnRZ42jNhlQ/ 7VA4R1z6bX5K8yux74SO+QH43m4Zveh+52BMT//oC72pspDAy6KwmgVnYDmfWiY4 wWTYSoH3R7Ol4BUcv0VqV5laqa8vZ/rcFpOOUPxFXbdRVPVCGyL6oJinOzd5t//I 40Zl4lBKeSRR15moeKPfk7fWu3R/cQ== =FYnw -----END PGP SIGNATURE----- --CblX+4bnyfN0pR09--