Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4614518iob; Sun, 8 May 2022 19:16:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZaxMnfNnPq4zhrx+S10egeWqfpTFVCie7HSKNRGXcughbsiezB+q/Fm6Im26h0o5HoDbD X-Received: by 2002:a17:902:dcca:b0:15e:eb8a:e8d7 with SMTP id t10-20020a170902dcca00b0015eeb8ae8d7mr13476878pll.148.1652062615630; Sun, 08 May 2022 19:16:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652062615; cv=none; d=google.com; s=arc-20160816; b=BGVwfeT/10F/vveXYeuWJ1L/XU8CzynoQPRHOPohF1FmhH7D5v2E+Ky2s3nX8Efv1/ 7QSH+2an/xOvCez65Z3CJUQ4GA924fQlUauxe9zFy3ys750/Yw1IqxkLs/q2ZtjS5ET5 4AcrGSB1Sm5CW5+DYLD3gCb6ENe/JRvCeidrT9dhCmRMVOixKZFMhPqWdPfdTAQd09Kw 6eejdIPyDXLmjFBIp/xoUXmm7bpXM8NmAXqYzqeeVdIsIh8hgYug5DdGOGoq463H/vKn RAUZA453uFjYiBSISv5fB8a9afh0Ag92ZvHpfJ3fmc+KIVKD4S8T20JsuQ6zIy/uqksd Dpng== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=rls8aC2oVAIoC6nbs420p0Vg7BSiXUSbF8Z5q9YUDkA=; b=w71aduR003KDspRz4Db3jjk+2+QSzbysPA695bPb34VgUM4j/QO4xoauPJ1zPfvw4V 1FnEAEj0xfWjRHyG8goVqa0msxLvMgGI7L21NKpEByyGW2aihch/wKIEQk4b2sDQjhfh Z5aoY80UklWtU6Sm/VaRO/MT106+jIty1VrQY/aEGIRGJcmXCL7AsZlGmS6v/Q5uDkvQ joAt8prYCdQLZ88jjhHXgeasyuPsKuJinikVjiIiiBJ9tuDFYQqhZ9KFpFRaJWaFwtn/ nvVxWSflLw4/fVE8VVcNizfMkM/IatrBWcjpsz/sImErBDwL1SqMJb+5mA4kjxiwhTrO 5v1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=P5P3MYSF; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id nt12-20020a17090b248c00b001d0adade18bsi17251861pjb.0.2022.05.08.19.16.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 19:16:55 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=P5P3MYSF; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B2C53580C2; Sun, 8 May 2022 19:16:25 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354492AbiEDQyb (ORCPT + 99 others); Wed, 4 May 2022 12:54:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353854AbiEDQwf (ORCPT ); Wed, 4 May 2022 12:52:35 -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 964EA4755D; Wed, 4 May 2022 09:48:44 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id AEEA16177E; Wed, 4 May 2022 16:48:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A405C385A5; Wed, 4 May 2022 16:48:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1651682923; bh=NR3zf8+wobyKh5rsMqyyrs5WlQl2JkF1VRptszhN0xc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P5P3MYSFvh2X33BDPWBLLD+W0WXiHz0B1WVTJCaUSycINYgZ5TvUjrnGRxFMbxmK0 TMQXCD1ZvweYM7po0SqK8PP8UGIcNDknOUOCTq5ycARuk8Cie3fFeUl8aIAwmFbPN3 3MnA52V+/ZYnjmu+O54i1Cx7Pb+J7SnSXMlzTdQk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Miaoqian Lin , Vinod Koul , Sasha Levin Subject: [PATCH 5.4 41/84] phy: ti: Add missing pm_runtime_disable() in serdes_am654_probe Date: Wed, 4 May 2022 18:44:22 +0200 Message-Id: <20220504152930.721903004@linuxfoundation.org> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220504152927.744120418@linuxfoundation.org> References: <20220504152927.744120418@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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: Miaoqian Lin [ Upstream commit ce88613e5bd579478653a028291098143f2a5bdf ] The pm_runtime_enable() will increase power disable depth. If the probe fails, we should use pm_runtime_disable() to balance pm_runtime_enable(). Add missing pm_runtime_disable() for serdes_am654_probe(). Fixes: 71e2f5c5c224 ("phy: ti: Add a new SERDES driver for TI's AM654x SoC") Signed-off-by: Miaoqian Lin Link: https://lore.kernel.org/r/20220301025853.1911-1-linmq006@gmail.com Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- drivers/phy/ti/phy-am654-serdes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/ti/phy-am654-serdes.c b/drivers/phy/ti/phy-am654-serdes.c index 6ef12017ff4e..96e3426f9293 100644 --- a/drivers/phy/ti/phy-am654-serdes.c +++ b/drivers/phy/ti/phy-am654-serdes.c @@ -641,7 +641,7 @@ static int serdes_am654_probe(struct platform_device *pdev) clk_err: of_clk_del_provider(node); - + pm_runtime_disable(dev); return ret; } -- 2.35.1