Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1328021rdb; Sun, 8 Oct 2023 02:38:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHI/eghGjEmaD6K7snkMB1LqYRkdhHivHgNiy+5lSrSO+pRU05YdSPL72FeTwwtWpgGkWGf X-Received: by 2002:a05:6358:885:b0:143:9075:6d9c with SMTP id m5-20020a056358088500b0014390756d9cmr12856617rwj.5.1696757914164; Sun, 08 Oct 2023 02:38:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696757914; cv=none; d=google.com; s=arc-20160816; b=FK8gLr/SsQC3nEephBZ9TCoqmtAsEiPOxhxVHcvLbbHQTLN7+oFZdTlvQDNKMxHqk4 r1ln1MGcbc0uU6Y/NozvyMwqa70pd69bqD2Ez5UDZwawnWm+HTmXOwRctq5fjBnNsPFv B8y1eU5fmSIaoMfz4C6x1IcxGXQABfXh34K3IyTfEetmhc768x82irYYqRGsW+1ZKpe5 DiaTCfqeXkt2787ymqpTkpxOOtxXgwGTpCiUugpzIRCznd4gkYSRvZYbLW2utoSO95sN nL0oCFl1cesKSyU8Et3NtoBPPMO8RMoPw1Q/6WXhm+vM3butesWJB5LYRacF4dcitvqZ nluA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=1fYiXpHzdursWStkJtczyobJvyoVD92PbbCoVYotrfY=; fh=T6/o+e3Spmm7J+JuGnUN0Ah79t14zdXwLsozwqGxrgI=; b=PferYBxmbuZbwIsTQx+uCKow7a+rZ5/IN34wwqjaz6ye6ZriBTGw0NqQKumj6Js76n wjLyPWUQiZEBuhG74zY1auwfldN00RlUoCxACk8PqVf2WR3bTii8X2gvsww/oGMbP4Hi DKr1DUms225mo40IMHkprDYu1dH3hOLsEcMJabJ/QsLP6UTDiq30/YSpjUh0sgRmVzW+ rAUONi994LimY034VljiSlkqc3yhpuL/hDTln1XSTEw4Iz8PqShqd9z/WHX6V45hx4A0 sNt62OFVHzpCxlbkDvEJnj97jM1Jjk8jdZxuBikNlDO7uQpdk7o7efhjUn89w9Tmv4i1 QbjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=QHFEsIPv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id cu13-20020a17090afa8d00b002681fea6d14si9461216pjb.79.2023.10.08.02.38.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Oct 2023 02:38:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=QHFEsIPv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 6D4F8804025B; Sun, 8 Oct 2023 02:38:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344578AbjJHJiL (ORCPT + 99 others); Sun, 8 Oct 2023 05:38:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344589AbjJHJiJ (ORCPT ); Sun, 8 Oct 2023 05:38:09 -0400 Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4482AE9 for ; Sun, 8 Oct 2023 02:38:07 -0700 (PDT) Received: by mail-il1-x130.google.com with SMTP id e9e14a558f8ab-3512b425662so15273215ab.0 for ; Sun, 08 Oct 2023 02:38:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696757886; x=1697362686; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=1fYiXpHzdursWStkJtczyobJvyoVD92PbbCoVYotrfY=; b=QHFEsIPvFJZh82f+daq08zKBn6+KDJ4hnW0C99nbioS3+907oKzE6htpCPEw1DjwSU AbdI8zaBM4LKi//eGm11PDXiJ9Aii7N+5H7RU0McyzDTLSxYJV+XFJcjqyFxL2FSzHsx ZwW62dXjqQc6l5M60FTWcLvOYeoRZt60aq4xRltI9MCVv5osWaVkUGGvPv3AppOS4sNA EzqhATp5OkHUhn0ZTfqOfTNPfD8iXKumOs1U7ueSBG73mW1lvp8LewaMz1HdCH462hOm ZmmCC26/S/RNRqMCi8xG3tFLTgPSmaqHdUVgsIrdaqImUEJh6m/ubYAK31FKYiT3LYQE R//A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696757886; x=1697362686; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1fYiXpHzdursWStkJtczyobJvyoVD92PbbCoVYotrfY=; b=I0ivOVFk1h1iUzkLYvulcW85FS/e3Oss4bG9zppyS6Iwi/FzVRXAYVGdMTcw5ioPTa 8DvWmjXE00KrsQYdREukEvKpWAvW77U8qA6tW55SpaU9U7TB/iReMEqREvYskfnT2wg4 qJK9G2Hsm6BC+yNVW0b9VZiV+gkp0K1iO5/XR4wSMqL9XE0UXRqlDnH/bqCHjxKQ2nbK wZOkTI5zsu/GjcSsN/MWXgN6H9ic/B7Pmv/piNVUPtvBsEZjg1mP36idTLO7k7FaQuBY BGD5/GAsQPcSincK3mAgD3hWs/ciuarzOfQNiaZ8iz1kJLXgcUoTD3uFBWKOLQzC6Hl1 0PwQ== X-Gm-Message-State: AOJu0Yycqm0rpWw/CjqmAhoW+RNiwo7e53TmP4fWsRWbavd/hXammupu X29/sMVtZp2mTU5sWrGtjPG9wa8ts/vs/VeXuYmQRpxoXg/Mrg== X-Received: by 2002:a05:6e02:184f:b0:349:3020:d103 with SMTP id b15-20020a056e02184f00b003493020d103mr15718726ilv.25.1696757886364; Sun, 08 Oct 2023 02:38:06 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Shengjiu Wang Date: Sun, 8 Oct 2023 17:37:54 +0800 Message-ID: Subject: Re: [PATCH] ASoC: fsl: Fix PM disable depth imbalance in fsl_easrc_probe To: Zhang Shurong Cc: Xiubo.Lee@gmail.com, festevam@gmail.com, nicoleotsuka@gmail.com, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=3.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sun, 08 Oct 2023 02:38:30 -0700 (PDT) X-Spam-Level: ** On Wed, Oct 4, 2023 at 3:12=E2=80=AFPM Zhang Shurong wrote: > > The pm_runtime_enable will increase power disable depth. Thus > a pairing decrement is needed on the error handling path to > keep it balanced according to context. We fix it by calling > pm_runtime_disable when error returns. > Please add a Fixes tag. Thanks. Best regards Wang Shengjiu > Signed-off-by: Zhang Shurong > --- > sound/soc/fsl/fsl_easrc.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/sound/soc/fsl/fsl_easrc.c b/sound/soc/fsl/fsl_easrc.c > index ba62995c909a..ec53bda46a46 100644 > --- a/sound/soc/fsl/fsl_easrc.c > +++ b/sound/soc/fsl/fsl_easrc.c > @@ -1966,17 +1966,21 @@ static int fsl_easrc_probe(struct platform_device= *pdev) > &fsl_easrc_dai, 1); > if (ret) { > dev_err(dev, "failed to register ASoC DAI\n"); > - return ret; > + goto err_pm_disable; > } > > ret =3D devm_snd_soc_register_component(dev, &fsl_asrc_component, > NULL, 0); > if (ret) { > dev_err(&pdev->dev, "failed to register ASoC platform\n")= ; > - return ret; > + goto err_pm_disable; > } > > return 0; > + > +err_pm_disable: > + pm_runtime_disable(&pdev->dev); > + return ret; > } > > static void fsl_easrc_remove(struct platform_device *pdev) > -- > 2.30.2 >