From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C89D2C43603 for ; Thu, 5 Dec 2019 02:25:28 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 78DD7206DB for ; Thu, 5 Dec 2019 02:25:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="aglRMlJM" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 78DD7206DB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 47T01f5NZxzDqY6 for ; Thu, 5 Dec 2019 13:25:26 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::543; helo=mail-pg1-x543.google.com; envelope-from=nicoleotsuka@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="aglRMlJM"; dkim-atps=neutral Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 47SzzL1CJnzDqYM for ; Thu, 5 Dec 2019 13:23:26 +1100 (AEDT) Received: by mail-pg1-x543.google.com with SMTP id b1so809978pgq.10 for ; Wed, 04 Dec 2019 18:23:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=H1VUU4rUNg7kFJO0xACp+i6rdKuZ6Hw04Q1UCWcIN1I=; b=aglRMlJMdAULGfV+4x2klYHp9oyyrIwz3f1q0hoDKQJotHgJodNQPgDvNbiZevppxo BQM6xM/mqyzPvkKf7kt4NMp59Sm9OQCTMpy1gDhVWEH3tfO079d/zDI3qGeovh98hDKE VeVC5xtkNdnKAnjJCHBbaMTazkMa/jsA+8xUcqSrA0mq3oOo2NENR4XY1WexeTw+VyxJ /vTvSm5xCYVi9dBv/k7miIdxyLqSwKBpelvVPgcYzA3n2FFo597Z3mh++tJtZJKzroYC 95t1Ad8Ibr0gUrZmOJDiJhST1NjFBqLSKMa48T55xBKnfKKH5fJOKUNcIotF/8F3p1If TwRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=H1VUU4rUNg7kFJO0xACp+i6rdKuZ6Hw04Q1UCWcIN1I=; b=jIws7xOe/MHXfRQL/qKmDXGJIqv6/zsDrmHPdrqhRiJfHo7VFWZ++QHMro1FjYoUrP ZWncZDR1Z2LStZpMeTLQwAs66QLXfrfhKL9vFJZzkqUS3lwcgSBT0ktZbhM41l7uam9R RQO+KwZ+CM6E/qul2h6DuR7kGe3oVRjSJo/GfGvk59PuhweEzlPRaV5+XEewc1D007H8 M3PHMB9H+rYWEZDRHB85dDLAAGPkWlW15w3yNOl1TEAiihmEfFJPzria7BVyv90/20nB EOKckaIBeUkVYWlqCFcVVP1VOQCY6zGsQldiQs00jXr9J53HdfweBqNHJZoJWjN3VmEt 3LtA== X-Gm-Message-State: APjAAAU5kwUgyfk7oll1Tuj/ZH1Bbe5/TOLp8ME82FSii8AowaCSuR+B Mo/SKC0at64Jhb/NCeNJ2oY= X-Google-Smtp-Source: APXvYqzkjBxfnQeluO+tqp7YsVDUANm1utWoTgwzql0A8Bkxp/7Um+nIn79aONqUfWZ+c2qIO6OiWQ== X-Received: by 2002:a65:4381:: with SMTP id m1mr6893645pgp.43.1575512596508; Wed, 04 Dec 2019 18:23:16 -0800 (PST) Received: from Asurada-Nvidia.nvidia.com (thunderhill.nvidia.com. [216.228.112.22]) by smtp.gmail.com with ESMTPSA id d26sm8722858pgv.66.2019.12.04.18.23.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 04 Dec 2019 18:23:16 -0800 (PST) Date: Wed, 4 Dec 2019 18:19:56 -0800 From: Nicolin Chen To: Chuhong Yuan Subject: Re: [PATCH resend] ASoC: fsl_audmix: add missed pm_runtime_disable Message-ID: <20191205021955.GB1122@Asurada-Nvidia.nvidia.com> References: <20191203111303.12933-1-hslester96@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191203111303.12933-1-hslester96@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alsa-devel@alsa-project.org, Timur Tabi , Xiubo Li , linuxppc-dev@lists.ozlabs.org, Takashi Iwai , Liam Girdwood , Jaroslav Kysela , Mark Brown , Fabio Estevam , linux-kernel@vger.kernel.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Tue, Dec 03, 2019 at 07:13:03PM +0800, Chuhong Yuan wrote: > The driver forgets to call pm_runtime_disable in probe failure > and remove. > Add the missed calls to fix it. > > Signed-off-by: Chuhong Yuan Acked-by: Nicolin Chen Thanks > --- > sound/soc/fsl/fsl_audmix.c | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > > diff --git a/sound/soc/fsl/fsl_audmix.c b/sound/soc/fsl/fsl_audmix.c > index a1db1bce330f..5faecbeb5497 100644 > --- a/sound/soc/fsl/fsl_audmix.c > +++ b/sound/soc/fsl/fsl_audmix.c > @@ -505,15 +505,20 @@ static int fsl_audmix_probe(struct platform_device *pdev) > ARRAY_SIZE(fsl_audmix_dai)); > if (ret) { > dev_err(dev, "failed to register ASoC DAI\n"); > - return ret; > + goto err_disable_pm; > } > > priv->pdev = platform_device_register_data(dev, mdrv, 0, NULL, 0); > if (IS_ERR(priv->pdev)) { > ret = PTR_ERR(priv->pdev); > dev_err(dev, "failed to register platform %s: %d\n", mdrv, ret); > + goto err_disable_pm; > } > > + return 0; > + > +err_disable_pm: > + pm_runtime_disable(dev); > return ret; > } > > @@ -521,6 +526,8 @@ static int fsl_audmix_remove(struct platform_device *pdev) > { > struct fsl_audmix *priv = dev_get_drvdata(&pdev->dev); > > + pm_runtime_disable(&pdev->dev); > + > if (priv->pdev) > platform_device_unregister(priv->pdev); > > -- > 2.24.0 >