Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp554535rwb; Sun, 6 Nov 2022 09:49:50 -0800 (PST) X-Google-Smtp-Source: AMsMyM7eiUTw1YL/vuw3uooQSFsax2wha5xlLzAPxWgF9aReN3zjpLXl3v+1bXMtUXm8FrRdeLz3 X-Received: by 2002:a05:6402:5406:b0:452:1560:f9d4 with SMTP id ev6-20020a056402540600b004521560f9d4mr46574171edb.333.1667756990094; Sun, 06 Nov 2022 09:49:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667756990; cv=none; d=google.com; s=arc-20160816; b=HJJtb6ej4BQ+rhyImxdFFHkhKuQC7KL49+0PiOIIv2lk5AyY61uZ3vJaJ35iY0v2V3 UuSBv6Tap679O1yzm307cQ0Gjuw/kFj1eUsYoYqjvbReXm8rdPQiucq3OJ0446i4T0iB LyyL4e/HYgdcbcb7ltH3CQYjCcZmyPbHkQ48Wvr/Ff+U4QkVxopLas255mKe+cZXtQEw GqBx+qlIpq6ncuMionfV9bR+qO2aEbXWfhIYUaRNDxc7Sz0j0mNrs89OF5ZJuEvaaMoc w2dtY7D2dj1ufEL+zVebbvetHa8QoPU7sDw/i2yCNqmrSqUAil+n8mo9/Fy8hz/xDQHD NhNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=zb8WRRhI6/cNU8T6uYFVN5/jMJ8RHM1ci38yMrSps8Y=; b=qUG9KXOFoOax0IXF2jCslZMN//lG5/QQyjAxsiPT53RxrsBvYim0oVZPtz7lbiZgo/ +jKFf/HcP3TJE782MsHAjKzH9aRePDqQdY0wTGjWtMQe1i8M16CSjslSW680FHc1DzMj 4/o+mI3P0N7G/R+HsyTsqvCLtECkck14ioiqDq4lGg8DE9bz49xPnCsRqQthtGtM423i iSPDb2QQ0jA4LJEkdU9TxaFhLu3Ctb8mby1yDhGeLegTjsh6BKQjFdYVX+MXMztZf5LC Be3NBnnY+cHl20ulaUHsfJbaROtfNzwIdLvSRuv7ddTjfcqEoAqwwB/YNyEceoNVnmj+ Kmhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YCaaryBF; 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 q20-20020a056402519400b00457c6b5dc07si8567937edd.455.2022.11.06.09.49.27; Sun, 06 Nov 2022 09:49:50 -0800 (PST) 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=YCaaryBF; 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 S230439AbiKFRTV (ORCPT + 96 others); Sun, 6 Nov 2022 12:19:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230219AbiKFRTF (ORCPT ); Sun, 6 Nov 2022 12:19:05 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D987B11A2E; Sun, 6 Nov 2022 09:12:05 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 61B38B80C71; Sun, 6 Nov 2022 17:06:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02414C433C1; Sun, 6 Nov 2022 17:06:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667754406; bh=7KTEvaEN6pllnL953loH5YZMkruYuS0cDZuxGKvU1Qw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YCaaryBFVK9nIgHOy1T+30DgGz4f0/imvvIkyg7RVojCdyLV2IH2lw3hDbdckjx0q dtS0S3ssPPxDOaPQB8gdrDjeK0SJC3UGotur+PAYxkF01hB61FlhOgsZDvjszczgX6 Hy4IEwq+8f9cMXmfywr3JLTbuNVnfOgmwbJf2LsevsrUafu4ZMWFfWhzjgdPqXw1hm zIohX6mxbLU/3792iEnWFuF7Ir4Ev2ZBoAA+uYLx5DvC4J8VCUHiKZA1Nh0Ms4YEjJ 4pdtzfa6WCrDFMgG2P6VjJhhcW0pAPc5174iYASATBjUASQm4Bx1spSWRU6FoIu9Po 183Nqb4BLnQ9w== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Zhang Qilong , Charles Keepax , Mark Brown , Sasha Levin , lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com, patches@opensource.cirrus.com, alsa-devel@alsa-project.org Subject: [PATCH AUTOSEL 5.4 03/12] ASoC: wm8997: Revert "ASoC: wm8997: Fix PM disable depth imbalance in wm8997_probe" Date: Sun, 6 Nov 2022 12:06:27 -0500 Message-Id: <20221106170637.1580802-3-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221106170637.1580802-1-sashal@kernel.org> References: <20221106170637.1580802-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 From: Zhang Qilong [ Upstream commit 68ce83e3bb26feba0fcdd59667fde942b3a600a1 ] This reverts commit 41a736ac20602f64773e80f0f5b32cde1830a44a. The pm_runtime_disable is redundant when error returns in wm8997_probe, we just revert the old patch to fix it. Signed-off-by: Zhang Qilong Acked-by: Charles Keepax Link: https://lore.kernel.org/r/20221010114852.88127-4-zhangqilong3@huawei.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/wm8997.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/wm8997.c b/sound/soc/codecs/wm8997.c index 07378714b013..229f2986cd96 100644 --- a/sound/soc/codecs/wm8997.c +++ b/sound/soc/codecs/wm8997.c @@ -1156,6 +1156,9 @@ static int wm8997_probe(struct platform_device *pdev) regmap_update_bits(arizona->regmap, wm8997_digital_vu[i], WM8997_DIG_VU, WM8997_DIG_VU); + pm_runtime_enable(&pdev->dev); + pm_runtime_idle(&pdev->dev); + arizona_init_common(arizona); ret = arizona_init_vol_limit(arizona); @@ -1174,9 +1177,6 @@ static int wm8997_probe(struct platform_device *pdev) goto err_spk_irqs; } - pm_runtime_enable(&pdev->dev); - pm_runtime_idle(&pdev->dev); - return ret; err_spk_irqs: -- 2.35.1