Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4291562ybl; Mon, 9 Dec 2019 08:25:56 -0800 (PST) X-Google-Smtp-Source: APXvYqzFSnDEWAT064HDAdLUW3i3g8wTVrj1IE/WKfFSl5Gt71N1OxpPsJcZVHEqze1E6sgaWzoN X-Received: by 2002:a9d:70cb:: with SMTP id w11mr17496473otj.157.1575908756855; Mon, 09 Dec 2019 08:25:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575908756; cv=none; d=google.com; s=arc-20160816; b=IdlpwHEIPerLu3QVf4/sxzlIZp/50dKZ8PEZnHAoQRfa11KMaJ5xErJ6qHFQYMmLVr awi99yu8xvtIYjV6wBDtZ4rIPLFXcxDvSpalNSFwoijcyocjO0HtLxRfOsjZxt7t4cOm k9/OBRf9izcL9BbHWk/hKmS0cQEiUGBCisjGEryZS/CWVtqoegHos473NoMgebsBPaqR JNXZFJLUmi2AJjfcotIb0Y+zWIYPMCZ/TLnSDITjmVDJrnzKj2/bhjTnMvkYKlVZse7h OPoXafkCE9oD5FbpgR3QH4wIGzExsxNxgGwIjgv2RcxNcjmhlN0f9Dfj1tcTer/tlXif DNTQ== 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=+cHHqonY2P88Ha+1/KXRy8FsES4XqTuNvm1m53Bx3dk=; b=AQHX8K0g6sJHTB4Qp+N7cP5HkIAywivqSDtwG37MCq3TsNKIV5oy3xdmb++mec2wvS /YN0fC6a7u8kSBOu02oSJT5N/fSYqW6vb939GOuOwaOMFVSqrdi2u/C9NBUdCQBHOcdq vP7Ci7+gxVWJ/xCrHK4m3C6G4rRjo3Tcy4MsOAMTVE5Fe5YCINkVqG+15mYwJjUhIzzI GT1WUCU1hGmMHHyP4D7MWIm2GY/iVlANLQErVGL8qO54Gf1UBk0rn3z6QiXLO4R14J1K 5vTREy0Dp698PVDjX8ZFbliLAb93bRO7viiI3tGw3ph6NGC7hX4ZgGbHvi+hztvV8Xvn z2iw== 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 i25si110276oii.259.2019.12.09.08.25.45; Mon, 09 Dec 2019 08:25: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 S1726674AbfLIQYV (ORCPT + 99 others); Mon, 9 Dec 2019 11:24:21 -0500 Received: from foss.arm.com ([217.140.110.172]:37490 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726230AbfLIQYU (ORCPT ); Mon, 9 Dec 2019 11:24:20 -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 188571FB; Mon, 9 Dec 2019 08:24:20 -0800 (PST) Received: from localhost (unknown [10.37.6.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8AFA53F718; Mon, 9 Dec 2019 08:24:19 -0800 (PST) Date: Mon, 9 Dec 2019 16:24:17 +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, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ASoC: cs42l42: add missed regulator_bulk_disable in remove and fix probe failure Message-ID: <20191209162417.GD5483@sirena.org.uk> References: <20191206075209.18068-1-hslester96@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ieNMXl1Fr3cevapt" Content-Disposition: inline In-Reply-To: <20191206075209.18068-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 --ieNMXl1Fr3cevapt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 06, 2019 at 03:52:09PM +0800, Chuhong Yuan wrote: > The driver forgets to call regulator_bulk_disable() in remove like that > in probe failure. > Besides, some failed branches in probe do not handle failure correctly. > Add the missed call and revise wrong direct returns to fix it. Same issue with runtime PM here. =20 Also please submit one patch per change, each with a clear changelog, as covered in SubmittingPatches. This makes it much easier to review things since it's easier to tell if the patch does what it was intended to do. When splitting patches up git gui can be helpful, you can stage and unstage individual lines by right clicking on them. --ieNMXl1Fr3cevapt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl3udTEACgkQJNaLcl1U h9Bqbgf9GTYhOs7Nn3KkyBrYfs9NAQYMhCp8xOVquBih5sU9TwD7H0AG8fXJH2Eu p8jFyERHbkF5DMeHKeP/hzl67ozizN+Iy4JS1DeBMlskvgX1Bu3B465+/MVFREbA ivJEXS9KlF8BXHjFiy512SvsxYjtcdq8sYsO6SNi+yGDd1dGxYfXefVolMkapckR FbJ/hWFj+xJl7x9fEcoi1JeowSVu6Pg03UmoyA2B00pLA1DUR8nxbHCV/oHfK8GV 631fB7i6WCh9OdI2pZqE9xVgHPjnbctVoV5S9K5B0nqabr+2gA5yLHHBY5bqz4DH otFYGNuL1eFWPBSiNsVG8Q6Ex7tEfA== =ZgZ0 -----END PGP SIGNATURE----- --ieNMXl1Fr3cevapt--