From patchwork Mon Feb 22 11:23:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 385759 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp1184352jap; Mon, 22 Feb 2021 03:25:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJw9nRrSEHWxpwStIfVhsAa3zODaYDEbpaxndRBeTCL77ik7LoIAZqJDyF7qc2U+IjCREGSI X-Received: by 2002:a17:906:7f84:: with SMTP id f4mr20890134ejr.60.1613993148693; Mon, 22 Feb 2021 03:25:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613993148; cv=none; d=google.com; s=arc-20160816; b=IhMj8er+b788Yu4j6HJ53O+g1RxGHcTnzJjMlb2CJ4lZXHGMDmWtTRf/tLFtNJcXFI LZqBGXvNGjYw60ZaH0vj9dfR4Id6dwu0sD/jlwnfHMDggxzeXtY4iwCn/l1zA8XaaHSf YVm2Y6GEMA3vp/HM7nqeOUNMUIzE/tagy8IIZaZcnGPdEAdoJ2Jx/g7Q5GN6c6rTjoEL QXIS+9ShZPId/aN+si9GJJDhU+Vl1wTLOIpGKElhIsqKzAsBB/M6Y1FKOG3N0tKmLVJp JSPhR30L2vST+XsOEmiS0yKFuMFlujLCwxUUuHjbbeimF1DLQcpTKOqeQH52xBgb1UY3 2sRw== 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=aPZhKkrmpVrH4rdknlkaSt+wXkZ6Xm/lEzN/7YS7+4A=; b=cOYWBAs2UzUetVP97A4q9s7VJlZ9gAB2zC1sT6EVxu6seHEj5vClfCDAIFV8USnJrw wvGckr34OANsl5FTsNSHpNjC1z5FcvmWmfiiQ8bVHeAEKBXatIm4Ht6ibQRKVkDm4Ya5 5rdtgERymTahJJRN3lRmLOi18zkd7V1IBD+f0Ch9ehFj0BYQ4QNMPDfBrenNJhdU9hNX PPn1xx6ny1GWjK5NdtoauZLNewdySnB58P0GdXCkTyGhxLg0GFTtIwRFv/vUCpLCYHG1 3Y4qaAXYV12kIb6ZDc2SSeng/qYyXq++obXg1bPZpoS2b/pC2f2bH752/LQUL+Rov0J1 tbkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ErDoseVx; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 t16si11433091ejj.217.2021.02.22.03.25.48; Mon, 22 Feb 2021 03:25:48 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-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=ErDoseVx; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S230439AbhBVLZD (ORCPT + 6 others); Mon, 22 Feb 2021 06:25:03 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:57334 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230433AbhBVLY6 (ORCPT ); Mon, 22 Feb 2021 06:24:58 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 11MBNor2007149; Mon, 22 Feb 2021 05:23:50 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1613993030; bh=aPZhKkrmpVrH4rdknlkaSt+wXkZ6Xm/lEzN/7YS7+4A=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ErDoseVxlmXe1tkjP4dmLITKmzVG4kecJNhwN5FduZ2KEsW1Y2ON4ZD/voM73/pHd 4THFtGEmEOkqYSLxpxSC6HS2lvF4E6n2wH389FVIvt3AEGTVgdWUMkjACvitipZCKW NZbIvXhs58rsMi2O/IPleqm2ZQ7kzgQ1fo4omzWM= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 11MBNnfL050358 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 22 Feb 2021 05:23:50 -0600 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 22 Feb 2021 05:23:49 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE108.ent.ti.com (157.170.170.38) 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; Mon, 22 Feb 2021 05:23:49 -0600 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 11MBNFDe088010; Mon, 22 Feb 2021 05:23:46 -0600 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Vinod Koul , Rob Herring , Peter Rosin , Swapnil Jakhade CC: , , Subject: [PATCH v2 5/9] phy: ti: j721e-wiz: Delete "clk_div_sel" clk provider during cleanup Date: Mon, 22 Feb 2021 16:53:10 +0530 Message-ID: <20210222112314.10772-6-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210222112314.10772-1-kishon@ti.com> References: <20210222112314.10772-1-kishon@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org commit 091876cc355d ("phy: ti: j721e-wiz: Add support for WIZ module present in TI J721E SoC") modeled both MUX clocks and DIVIDER clocks in wiz. However during cleanup, it removed only the MUX clock provider. Remove the DIVIDER clock provider here. Fixes: 091876cc355d ("phy: ti: j721e-wiz: Add support for WIZ module present in TI J721E SoC") Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/ti/phy-j721e-wiz.c | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.17.1 diff --git a/drivers/phy/ti/phy-j721e-wiz.c b/drivers/phy/ti/phy-j721e-wiz.c index 956a93d96d9b..1a4e09a394a8 100644 --- a/drivers/phy/ti/phy-j721e-wiz.c +++ b/drivers/phy/ti/phy-j721e-wiz.c @@ -608,6 +608,12 @@ static void wiz_clock_cleanup(struct wiz *wiz, struct device_node *node) of_clk_del_provider(clk_node); of_node_put(clk_node); } + + for (i = 0; i < wiz->clk_div_sel_num; i++) { + clk_node = of_get_child_by_name(node, clk_div_sel[i].node_name); + of_clk_del_provider(clk_node); + of_node_put(clk_node); + } } static int wiz_clock_init(struct wiz *wiz, struct device_node *node)