Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1879019iob; Thu, 5 May 2022 09:58:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2D7Gd936BMoQrYbujoDmoq7N+v7eayKMEOCTitIPuXYQA3rAwldKiJ8K7ol4LlpQfIb+j X-Received: by 2002:a05:6402:28b6:b0:425:e137:e31a with SMTP id eg54-20020a05640228b600b00425e137e31amr31445247edb.215.1651769904027; Thu, 05 May 2022 09:58:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651769904; cv=none; d=google.com; s=arc-20160816; b=zF4RHdKsPqH50OtL34+kVx236TkKA8HvkV4jTNwoCzJe1Jw0OCJqfLsnol3JwA/uwH P1CT+XJvk9aHlyIJ5VUUrVY/g3wTesLNpL3Cy40BW9kzwoxV0N22eERavt7mppJ+CfIJ NROycRTE1hKuXIgFBZewfWG4usCG7PE3l343IhtjfH7M1i9ARWEoEKSb9RTJQCGQOMQK jxmYoFt8vVBDY+v8HwjBNeLEXs4vHeoG0NPVuabDxK39xSvScIXnIF6W4tNl4subG81W qu2F3pXV9SzSKv+2WZhn6rJPdYRf2waRgW+jNYiqmqH/gQi/txm/3asQrjAIpEaC+VVa TlUQ== 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=vPNPmckZZ6sf7YIjjkaDTSOyRpXFxftFbJal5b8qUqI=; b=ZAW91B1t8qFCXvKJ1YfvGMnspjA8ncTA8j0texMMcUAm2NXrKVG5C7UIA8wqtu94n8 w1uVdSaCu+rWTJmRJHOb+4mFNlYOEJR6+PD3Um+TUygjfX33qhQD+Rxoga2MExw0DB+0 cdrUuj2O7ZZyIQ5GmgLkdgH/rzqtnrTX0dQMELTgPvni0s1gsv+xtYCnL31tHgkifom/ NuIw6iUcneNAoANWvoBWdS4KWrzeQXV7fWhs2svQlm/jVBkHuHDIjW+kO8yGmvvJP5m4 7/vFZDd3IpTGAj+flzyuaawsbNk+ws24JU16jb9oddJd58PlDBtYs84MJ32f+UB78xRr QYOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=feCfdqoX; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n22-20020aa7c456000000b004209bf38807si2280130edr.371.2022.05.05.09.57.59; Thu, 05 May 2022 09:58:24 -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=@linuxfoundation.org header.s=korg header.b=feCfdqoX; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356317AbiEDRSd (ORCPT + 99 others); Wed, 4 May 2022 13:18:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356076AbiEDREw (ORCPT ); Wed, 4 May 2022 13:04:52 -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 8F0145044B; Wed, 4 May 2022 09:53:46 -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 2E629616F8; Wed, 4 May 2022 16:53:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7EC35C385AA; Wed, 4 May 2022 16:53:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1651683225; bh=NfrxoOtdQe79uQ08LcEZjboGA4HW467EvA84KGmxlpI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=feCfdqoXtrksb1tUSI773c0jwlbwogrNVdk0aifgljt8eH2Z0sCWMSDEW+Y9YYuGM VlCr7tR3nHUTnq2UWcQFAIk/aELm0P0Mj/7s3lsmzxHTpgYNwWTABOKjQfyhphay1x t3YgxW1+A6cUX+uifkg3R/Zil/fJP2TO6OTVonbU= 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.15 068/177] phy: ti: Add missing pm_runtime_disable() in serdes_am654_probe Date: Wed, 4 May 2022 18:44:21 +0200 Message-Id: <20220504153059.128116209@linuxfoundation.org> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220504153053.873100034@linuxfoundation.org> References: <20220504153053.873100034@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=-7.7 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,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 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 2ff56ce77b30..21c0088f5ca9 100644 --- a/drivers/phy/ti/phy-am654-serdes.c +++ b/drivers/phy/ti/phy-am654-serdes.c @@ -838,7 +838,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