Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1363591pxf; Fri, 19 Mar 2021 05:47:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNWMHL7lVe1sEMlrsg/7WxUUYJ7azGt53hDV6pqigLe9X/llLeJGgrn4DAV6H3DNTvfXGn X-Received: by 2002:a50:ee18:: with SMTP id g24mr9363157eds.267.1616158043977; Fri, 19 Mar 2021 05:47:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616158043; cv=none; d=google.com; s=arc-20160816; b=lKGunBmaJZJhNQcPKnnjsOd0ZhM6jLnHO4gb7CL64urcCMBZ0tNftBDjnk8ycbyCvQ afLjvncWejw3sjn2GzrisPQTtwwCi3A86NsIVs89S1Qd6Dj2loxY/5MXfPkSrx+SRBxk qCJSV5+JU6h0sh9H5o1wSyQ+jg5qjixix6kgbeRIdxWQP3EFNzfWnOMXvY8ABKlVI814 AZROmm3CwttgUeh5SwkNp7YL1LkgTvxi8W9ZffIhdDI/fWpSoxdYFkikAXqn7KcRW8Jk Dv0sOuWqrKqfwnaj07RXtVb92fHP6/H+XmoNx6CUii1b9mjfcJnhc37aWC0hZyJLSt+5 GFHA== 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=cLeJfNUQEJsPxy3tJULQ2cklY1FKU9OmLZ0AsmKs8WkVRCRDE47RrQtdsZlngxz6jc Y08dT+nFWE0c9gKDAcLLqc43qPK4ogV8FCJhPsE6uf8AXRT7JEqa7d0CUTO42Wq88k3K CxkUsZ+lp3M0UU4MGSd3r5f36idKhcaHzETQe3eJ6NFYhUkR18kmy0YtP2SW8YGPC0aW nyzPm3d99nHr9iZw52kr25KyAtkJXGtyc2NsZNGTgiA2eQSeBObreErLjL92Jr2NT0GZ fWxxtttKkpxnstyZsC83KqnEXQQuoyJRR8tmRv7fjfVxm8sjwtOUwlBqYLSFrOuOd5Wy bE+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=AJR8yKas; 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 p25si3862982edm.297.2021.03.19.05.47.01; Fri, 19 Mar 2021 05:47:23 -0700 (PDT) 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=AJR8yKas; 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 S229996AbhCSMoz (ORCPT + 99 others); Fri, 19 Mar 2021 08:44:55 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:46292 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230190AbhCSMoX (ORCPT ); Fri, 19 Mar 2021 08:44:23 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 12JCgDSM108055; Fri, 19 Mar 2021 07:42:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1616157733; bh=Fr9ZyGLW31JmJAp0IyWK9eWBsQt1ma4OyJ8An42gTxI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=AJR8yKasr6kTdlxOcUL9EOLzvJAPgRwH1APAop2UP4TBusht9EvzIlmwDf93mqk6I jBofg6w9IhZRXYeDEej2HbWPbGvn4LS6Kp9RdPVy/n3rHqV5Ge7zAIqtcLOIY+/UjT K/28xNYpHmU5Gfmn5xVe24Vp+9TwRyF7a08t8d80= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 12JCgDXo125451 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 19 Mar 2021 07:42:13 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Fri, 19 Mar 2021 07:42:13 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Fri, 19 Mar 2021 07:42:13 -0500 Received: from a0393678-ssd.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 12JCfTfB011913; Fri, 19 Mar 2021 07:42:09 -0500 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Vinod Koul , Rob Herring , Philipp Zabel , Swapnil Jakhade CC: , , , Lokesh Vutla Subject: [PATCH v7 10/13] phy: cadence: Sierra: Add missing clk_disable_unprepare() in .remove callback Date: Fri, 19 Mar 2021 18:11:25 +0530 Message-ID: <20210319124128.13308-11-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210319124128.13308-1-kishon@ti.com> References: <20210319124128.13308-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