Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1492869pxb; Mon, 22 Feb 2021 03:29:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJxyU79xUgZ7k8mdWZpvzEXM0H3gcLO8vHdYuS4pml1jhADG8yXoek2jBjJuu8DJzRBxZ5D9 X-Received: by 2002:a05:6402:c9a:: with SMTP id cm26mr8094209edb.133.1613993343612; Mon, 22 Feb 2021 03:29:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613993343; cv=none; d=google.com; s=arc-20160816; b=TX/3xcx6HntxZtjq2FtTdxIBfGDQj2PSeDnAA7qt3zj/p0/H3Fvan0vFMQF8Jhp2Nv LJdY+6ZnvFoKTOoKK3cutk7pRuEh4PRjCntrBKL3mIGDzzv8mG9c+ypcU3zWDvo7qSdi vI+/j/lvyJ+vgPMtaiZl4fxVgDir/t9hfRZ00F+kbR7lb/cAqWOV8oXlGNMj+3yJY0XU b5V4iKsXbEaYKMCZBFbEeqOw5qhfh5hAubL8KVCDpvC9jwTM1EZQeMHPKlTCBMJBtAPB LMrudXTFjd3R/nGRcTGoLIhfd3AkJo3W092J8t+Wy5xYnOxVpKbVlZklmDMj9Y3RYWSy 1zQw== 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=uGsK3qJcNKLq3sdVvL4mCILTJMLoxdLwvmLl7EHgAWQMMlUmmGh04BXVArxQmkMAbk oR/joEqaBiUJtn2FI2a5kYiFCbO4O9U1REsznglEkI4lMwrJd3NApwOFzMH1QoGZ9Swh hHEZkEwW+gwDye5i3zJK2d1GQ4l9ZsFehFf/yMJAh9dPcSjNccuKMowNv1qbbYWZtaSg M0J5pYFPRfwrM0Ilso+LbadUB3XcgihFKGvA4w71tv/ib8Neduwjb3bqdDBPCI7mdit7 zDnQkiX4Cjc+U6ZEadHXlXWKYvab3lqKcnuUGZI+CJF26ZulPJKmNgHO6srqnTXPvLPb F75g== 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 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 l18si1514405edq.302.2021.02.22.03.28.41; Mon, 22 Feb 2021 03:29:03 -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=ErDoseVx; 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 S230205AbhBVL0b (ORCPT + 99 others); Mon, 22 Feb 2021 06:26:31 -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 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 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(+) 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) -- 2.17.1