Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp192208pxf; Wed, 10 Mar 2021 04:10:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJxK01X69hnEtYiP4dV56uWzvhn7sdVVgutehxMVGJBZ5agyO9dZtYln0FhHC7q/H7G+gYhY X-Received: by 2002:a17:906:d157:: with SMTP id br23mr3415928ejb.192.1615378235320; Wed, 10 Mar 2021 04:10:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615378235; cv=none; d=google.com; s=arc-20160816; b=RjHGJtxkY2KfgsOitHF7XQVgBioGteu6bPaodGMzijrcyGal9vSoh06rsP+k5sdulq lf7tPr2mNQAtc20BXBPto/5rJBhijPxToXbaPC3ZDxjA0jDBS0G/JQcCoZSmIVbxhgqI a3Yd1/yITK/9WJWvVhWtop/E9nCHB/o7OfCvQjs0JxyVNESsW6624a3jsy1H9fq6AJcP WEN3z1rvnmmqdag0kI2BbtLOkLnUuvnh5yGam6JtURSEUsIrpVUZmdCcIMbiKljl5KE1 fTdfg3ByUlMYSfI6WZ0NUcDMCDZmysl+j7M0Hcwf1MKLbn10IdXol+h2fQ8bcrm+AEby B1SQ== 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=G9MKqc2elW76yAxdjSaxSHESb/etSLvXRh/wzix+WXocKt0y3v8GivrqjYoiDCYhvr aFLrGJMJeWChZ0jPiiXhUmvOGkaYpjh62PEYPyGA92opOHyELLBkcCI3pcejpb50UySS v8CELk1JlXD5h2euxF3xGklQTY8J93CKYTInrxD8sLT50fRdBRurdnA7ebDNeczmztDf /oUjM0b8DWtqGTZzg6p7jUo3AtjfNwVeJEpS6I3lFMUmC0s8RrxX03IHhD8njLiEY0LG M70YThmr7qzfSDiFsSWBCBYZUjtTb70nrIwZ1F1mlbtLbg8DIVawNbMUKvCoWCIhBLy2 jm+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="Hj/n0ue8"; 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 4si5287953edc.316.2021.03.10.04.10.09; Wed, 10 Mar 2021 04:10:35 -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="Hj/n0ue8"; 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 S232860AbhCJMJK (ORCPT + 99 others); Wed, 10 Mar 2021 07:09:10 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:44456 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232621AbhCJMI7 (ORCPT ); Wed, 10 Mar 2021 07:08:59 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 12AC8qYh031727; Wed, 10 Mar 2021 06:08:53 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1615378133; bh=aPZhKkrmpVrH4rdknlkaSt+wXkZ6Xm/lEzN/7YS7+4A=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Hj/n0ue8O0juFqFcd8lpGrbxuwpFYZVvIJqaPobNn5/1JRpAelAwbkhcpavfHJMB0 gQQoR55HZaFeC/GnTECHFOp7ZP+F4XRaHpVWC178IKzEydmTXxa9e4xvmY6D7llLSl HJ8iBAEtk5MB50CAe7mod/eeUjQ+7XgyKUW9Ba5Y= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 12AC8qc7110907 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 10 Mar 2021 06:08:52 -0600 Received: from DFLE112.ent.ti.com (10.64.6.33) 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.2176.2; Wed, 10 Mar 2021 06:08:52 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE112.ent.ti.com (10.64.6.33) 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; Wed, 10 Mar 2021 06:08:52 -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 12AC8ghd017368; Wed, 10 Mar 2021 06:08:50 -0600 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Vinod Koul , Swapnil Jakhade CC: , , Lokesh Vutla Subject: [PATCH v3 2/6] phy: ti: j721e-wiz: Delete "clk_div_sel" clk provider during cleanup Date: Wed, 10 Mar 2021 17:38:36 +0530 Message-ID: <20210310120840.16447-3-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210310120840.16447-1-kishon@ti.com> References: <20210310120840.16447-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