Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4592308pxj; Wed, 12 May 2021 08:51:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNmgJvFYJLUwpg8C9CMvb2crCsj6GpxEy8tQ9dIv9QBbTNpj2pAgb3NCr0GCjHTe33kqtl X-Received: by 2002:aa7:cc11:: with SMTP id q17mr11822790edt.240.1620834686713; Wed, 12 May 2021 08:51:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620834686; cv=none; d=google.com; s=arc-20160816; b=OzLKiFEM6o+gm+kzhEffx8rkB9rCk2lmFq4wF0J314kcXrn/uBIlKOvuLVhwyKaBxB LQYCewrpTwLV5dZQnKlgS0GGUy9SI38waarBH8TmWb+Z2oyCeJXg8+826HZS2MZpEV46 truL59kLevtU3Ea0hoBPWGUwnn81icXKrfxx8Z0D8/I9aMMMdUwY7HzQV2umA7YhbRV6 moaPXyWTiRf0axY+4Nul4oa+P/f4rjof8S4fiyRVJsQp1zxQzJu8n8auKSAG2hFxPZVi LwvBqvHOy7AQ44saAmjaXELFzZDvZVz83pXf38fUyz1RBL/vAD9aEF7HJ7HmCQeeRfG/ j0Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5DG6ki0h1JRQG+XcSP03gOl+GFGGI/cAta0v3Yv0rbA=; b=Pq4kRzWXruCEOKsM+wwWoz6npiE/stf7+TxenjdiC4D8lNzMyJAqcvdS8V0kQMigZB FnDMsjIsB0yFIdLXiKgIaE+CyYm+JeiNo1sgq4dOcjIzzA54PAoeNcxlHTOGqvl6mVTc vvlq3zX66SMuQwrzqAzVrPJirCH7Sxsk7LmEy7vRMG4H0gIr1TNLeoJ2oZWUMu+vBduG NdVJMp7aeluUJVCYxZTcpVKbEOYyzdNfjAIIlolof0ebzD56NOgyYjKQE3XQ9OCdxli7 D0v8ccWdjp89hi/Fp3HxjXmXPuiG8PB7ntHmBDrw2lWpJoPuDbgHub2QbMVARIpc+agn UCBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=I3fcalXR; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cs15si323480ejc.258.2021.05.12.08.51.01; Wed, 12 May 2021 08:51:26 -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=@linuxfoundation.org header.s=korg header.b=I3fcalXR; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237482AbhELPum (ORCPT + 99 others); Wed, 12 May 2021 11:50:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:60802 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234312AbhELPYp (ORCPT ); Wed, 12 May 2021 11:24:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AE787619C0; Wed, 12 May 2021 15:10:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620832215; bh=Sqj3YWST87hmXhuhOXg2T/RXQkYW65pVPk0SVR/NFjo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=I3fcalXRqoKowpsbI3TkcSw9xb6DHxCWo7Tj0scGCh0mYJne1Hk1LTN0fDTSg1AqI VAvvLWnqiIIeMzgEWpMBB+aEO2OCTZ9vuqqwAnegPkuXBdz2aNft3/QGxB7oFcAm2C WdAavFssc1gnfsYDaVNKq6srPrlD2VgX/yxFJGFM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kishon Vijay Abraham I , Vinod Koul , Sasha Levin Subject: [PATCH 5.10 189/530] phy: ti: j721e-wiz: Delete "clk_div_sel" clk provider during cleanup Date: Wed, 12 May 2021 16:44:59 +0200 Message-Id: <20210512144826.046266337@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144819.664462530@linuxfoundation.org> References: <20210512144819.664462530@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kishon Vijay Abraham I [ Upstream commit 7e52a39f1942b771213678c56002ce90a2f126d2 ] 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 Link: https://lore.kernel.org/r/20210310120840.16447-3-kishon@ti.com Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- 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 a75433b459dd..e28e25f98708 100644 --- a/drivers/phy/ti/phy-j721e-wiz.c +++ b/drivers/phy/ti/phy-j721e-wiz.c @@ -615,6 +615,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.30.2