Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1236299pxb; Thu, 4 Mar 2021 06:47:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJxQoXXcdcS49/4kPZ99dHRlPAQnLktIvXpmY1AEcOoTb02E6QIypr3OX/CFIion5CxNGB/I X-Received: by 2002:a17:906:a090:: with SMTP id q16mr4599869ejy.236.1614869264983; Thu, 04 Mar 2021 06:47:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614869264; cv=none; d=google.com; s=arc-20160816; b=aSJT12inN1lRyGZJSUBS+M2Ikfy3HPfzLFb+zm9pXebQubrGFAQTWdvzrSTg9ZBN6t +k05OPSJ9nQwk13B4dnR45UFbCcwzylVOJ8mJCViLXUFt4IanLsG0gQXhgTQXDiUcNSJ ICyoaX+xcUWtCLv4hylooMvZJWyW3SqKrSv7aIPJ8is32sPbuXvzgV3nqK7ZICpMXCw0 Kf1c43kB+pMl4KhHcNjblNFTtAJgOTenDObVC7lbdzkZRLbaZUa343vBn4nuXC5oUeRO 9eP6RpBq7nX2M2L1TyUbBOCmFOX5uDPhnxW9RIxpoPWxGqY4USHi3VQtk5tG5oF6pCwV w/cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Fr9ZyGLW31JmJAp0IyWK9eWBsQt1ma4OyJ8An42gTxI=; b=hqMraiNYRX+teKO6VJuFLsIlIKGZ3SSm5xizGnGrvqZrqi02hAS3jm6/QUB8CzhuSY /LzWYLyO9AUujTvNxpRD+DMb55SpK6x0JFGmJhwhrMeEISeX2Dane8jZrwG6TknWku96 mG5hAkvyAvAPkO5bv/AZ6UMvs+ZwO8+6/dv9nF5hxcv7BIYVUnCGe9dYXxao+4IwZ49Q eXDhtgwgkTZk6ad54AdUH1fOVXxcVT9GNYDVsqx7/DS1g5pcjUOWyUO5DwH271VIOGJD JISb577vLRsdjKGS9UL83Li8OeBI2i0IDIPyvQ9Bi7cb70/mYW8N4/onFTQ8Uh0j+xRa CQ/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=esapfHlQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g12si16932873ejd.256.2021.03.04.06.47.22; Thu, 04 Mar 2021 06:47:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=esapfHlQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233710AbhCDEn2 (ORCPT + 99 others); Wed, 3 Mar 2021 23:43:28 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:36700 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233635AbhCDEnA (ORCPT ); Wed, 3 Mar 2021 23:43:00 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 1244g5Xq101933; Wed, 3 Mar 2021 22:42:05 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1614832925; bh=Fr9ZyGLW31JmJAp0IyWK9eWBsQt1ma4OyJ8An42gTxI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=esapfHlQBfFqGr+e/OZGX5imYLaE/2OdK4paWDCwmPQ8VlFrQx7Q6mB7xIo7SnwvF nO5UR/UVlwWF7DkRWm/I1sFwV4sBxtrLbm0Ne1lQPFVhv5Zt8bTqLxd3ih831lApw8 lSD27o05COqAYvoW5/7rqxptIrZUIlHhYGzawHIM= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 1244g5Eo016590 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 3 Mar 2021 22:42:05 -0600 Received: from DFLE105.ent.ti.com (10.64.6.26) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Wed, 3 Mar 2021 22:42:05 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Wed, 3 Mar 2021 22:42:05 -0600 Received: from a0393678-ssd.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 1244fQfr042911; Wed, 3 Mar 2021 22:42:02 -0600 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Vinod Koul , Rob Herring , Philipp Zabel , Swapnil Jakhade CC: , , Lokesh Vutla Subject: [PATCH v4 10/13] phy: cadence: cadence-sierra: Add missing clk_disable_unprepare() in .remove callback Date: Thu, 4 Mar 2021 10:11:19 +0530 Message-ID: <20210304044122.15166-11-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210304044122.15166-1-kishon@ti.com> References: <20210304044122.15166-1-kishon@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org commit 44d30d622821 ("phy: cadence: Add driver for Sierra PHY") enabled the clock in probe and failed to disable in remove callback. Add missing clk_disable_unprepare() in cdns_sierra_phy_remove(). Fixes: 44d30d622821 ("phy: cadence: Add driver for Sierra PHY") Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/cadence/phy-cadence-sierra.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/phy/cadence/phy-cadence-sierra.c b/drivers/phy/cadence/phy-cadence-sierra.c index a45278c30948..ac32b7b0289f 100644 --- a/drivers/phy/cadence/phy-cadence-sierra.c +++ b/drivers/phy/cadence/phy-cadence-sierra.c @@ -689,6 +689,9 @@ static int cdns_sierra_phy_remove(struct platform_device *pdev) reset_control_assert(phy->phys[i].lnk_rst); reset_control_put(phy->phys[i].lnk_rst); } + + clk_disable_unprepare(phy->input_clks[PHY_CLK]); + return 0; } -- 2.17.1