Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp2179846rwo; Sun, 23 Jul 2023 09:10:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlGksZHYQMtx0J6AVz0I2/TYZz4kvlERUNAx2C6c5uPX47d7O8VaWYTAznF11LUC8DH8Rt/4 X-Received: by 2002:a05:6a00:130b:b0:678:4e9d:8fea with SMTP id j11-20020a056a00130b00b006784e9d8feamr3945022pfu.15.1690128612858; Sun, 23 Jul 2023 09:10:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690128612; cv=none; d=google.com; s=arc-20160816; b=V3kQ29rArVBea6LGmUpD4S3DidLmfsh8T/qSs8J/jXBVZSMEcN/V9rHoeuKd/X4xgg GxHdc4jrjTYXHUezmL+GoWfZKaEB9kCZeIivFjXx9p0e73Np5KzRXxEleMDr3/jFNJVY bkJygqIkah9QiwplpSSgVshs6xxUTk55DF7vfW3HbGtGgqXsVRpAr9P3dovW34ZyraQr hf3KxNoZDb7wiI5Al9tavdCExQWql9ESxf6l9BS94ek8ss/mykGr5/tXLargvQsLSnBf elBOl9jXPlTPuIFpG5FrMUr9mVTbBAxTgCxBRf5GXr/TubJKZl5rn23uwjBiWxAvyEYD MkUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dAwWhry737eF0eayeQXZ6kTDG8AV8zBu+Eymmz4SBrU=; fh=hYZzdDF3Y0jrrqoIwgvlj8/EP5gbK5haYQMULAMReyw=; b=BcPGiYVDkuR9B8NsEXC9wPw2F0USuOosrzN3GSzqLK/RrhvW3dEEBdnPiTTL69/mPR 0l4CkUmmrw8ieiZTmVrXLAMon8qYY74v0LRQ9USRW0oYv0PLdm1M8yVWtLCZT2xpwieT 2zgSnHosIpTa3j/wx43GZSyn/dHueI/JCQLw8hqPaVnZ4VEO7ddrszDfdWEYjDCwx40m P0WTcmUlKCuOiyie/T79R7Y9jgVi8iBZSp+vw65lPJHKP4rlAZpdmkzl2YqaUz8UDVLf lw7jUbMLbq9tU8CSmKvtyPY3RBicS8+D4CHsbtJ1cYUocANUM4D7gqzno1W+49Co7l3i O/xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jOVIIRv3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h4-20020a056a001a4400b00682babc6058si7561056pfv.211.2023.07.23.09.10.00; Sun, 23 Jul 2023 09:10:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jOVIIRv3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229557AbjGWPMX (ORCPT + 99 others); Sun, 23 Jul 2023 11:12:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbjGWPMW (ORCPT ); Sun, 23 Jul 2023 11:12:22 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EF8AD1 for ; Sun, 23 Jul 2023 08:12:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E682C60DC4 for ; Sun, 23 Jul 2023 15:12:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB2B8C433C7; Sun, 23 Jul 2023 15:12:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690125140; bh=7aE78xDzl/ON3r/nv0LAZnUncUCQ/xBV5NONfduK9ko=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jOVIIRv3sXq4FXkR6BZW4hfETFGqFM/tqUeagS7jLSdqtBBLQYbjNIbG2m7LcSsUP kNTA2oyNqg6OZKJWeNrQuSEIrUyKohWnNOVkK+AZ7mJSmpVj195F3U7tK7Mp2rdC56 caOZ7u9hsvwio4IdPJokCjMMXPH14M1IkllBCy1QKk+29I7XGyvPYlWwD6Wncl9SDd OVyLq1BCqfZF4kuxOnZYuBmrkNVrOglX4d9FYYXwFGgGIDuAPFYtXRFcbGyg9XYh+S i17akoLyw9kx6G5W/EEz3WCC2PNDb3KRJl8LwdRSo8kWvVUM9IKgfcFIRY9Ay1F5hJ rSxozhjzKsUXQ== Date: Sun, 23 Jul 2023 16:12:17 +0100 From: Mark Brown To: Zhang Shurong Cc: oder_chiou@realtek.com, lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ASoC: rt5665: add missed regulator_bulk_disable Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="RGYqtdSr/tWD83Ar" Content-Disposition: inline In-Reply-To: X-Cookie: Give him an evasive answer. X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --RGYqtdSr/tWD83Ar Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Jul 23, 2023 at 03:07:31PM +0800, Zhang Shurong wrote: > + ret = devm_add_action_or_reset(&i2c->dev, rt5665_i2c_disable_regulators, > + rt5665); > + if (ret) > + return ret; > + > ret = regulator_bulk_enable(ARRAY_SIZE(rt5665->supplies), > rt5665->supplies); > if (ret != 0) { This will attempt to disable the regulators if the initial enable fails which is a bug. --RGYqtdSr/tWD83Ar Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmS9Q1AACgkQJNaLcl1U h9BHjQf/aCDfhC3YfwWnLCjc1UBV+wGtWAEEvrQyc4lgEtRAfTxg8aMYh5uoDDHh Jf9iWUR4pnv1O54RJcD2I+3mWZKhrXBz5f43jQ0VrkUWACRnE/zVNr2jdQLq/DB3 LCc6Sh6gpfmJOqLhhjZoi5Dvt7fYPZH2cnqTLqNW4Ghql8XrEYpdWCsZffUkKitp iTxfMd98oGz1SLSHqs9BP0V3DxB3yiZnnvijeQk04gZNENTXczpp1shvuriC8669 1HAkxm93xb6lW0kQDPsiysThYCT3ZiH2PjCXjMhq/J0hbgnKzTQd2HWH1dZ4cJNO wqQbNFikIKFmu5nP3ZjshAPCRUUJQA== =VBnm -----END PGP SIGNATURE----- --RGYqtdSr/tWD83Ar--