Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4723277pxj; Wed, 12 May 2021 11:44:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFUHUnoXUVX4lxBXfsR7fy+ts9V/+poLC5V159gLT4CeIxFOCk2ty7QsgiXF8uls+hhJhN X-Received: by 2002:a05:6402:518f:: with SMTP id q15mr45406704edd.345.1620845089612; Wed, 12 May 2021 11:44:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620845089; cv=none; d=google.com; s=arc-20160816; b=HGePyzXL5p8b54eehYRtrOys5nFluq+iGlDpBniDpBil7C7LEPnVf7YA0hm+NfA3K7 PPKFS0GAPHfbVdGVTvYOn1ptiDV5+1AvER4YfhsR/orLkeb2Yc7SdWfE0suHWyUd6gxh qPcuA2P7LCFlRiiN/5KtSse2l3tQZgCb9JBkUP3lDu3wE17jvfHE+BQDcwFM/svhVy5J X0tG8yZU+LkdEwFyLMN2bJCBaoKoisG3Yo9CZk8SoS+8lL3QplCvASK3BJr0igeOSLM0 6ooR7Gth12/Xz3cFrXT+MZR24TpBDBwu2LOTGxt+aHiG6GXylh2yJNjR6Hoaij1y0w0y BF7A== 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=uv9MEWOW8y6nvULg05gFtrJx1mGud9lsWJURFUYO/X7JOV0DBoR+sqgdflEB1A1UdL uUbW9ZLjW1u7AHaMVInqnMP8nCrVvjBNyyOkmjgHIso15NFvWCnbG8geEUxsRYvn6t44 zqA92cI5J6xZRU5Upp+buxMM3xYwdR03ueTnrS4ED/0I4fHwy/ThuZwtZ0V0mUyjUuw8 yMIItpUNHg5DMkJbEipLlURksBh6Xh+PQSzN8q9dQf3fn2E1QGpsPOpnwcCw/vfs3bqD irYu2fe/bxiGuCTz8943341zlkiyVdscyQsNah2imsXS6PUek6Fzl/CN8pFtxyuqw3lg WBuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QRRjW3Tx; 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 r15si306854edo.469.2021.05.12.11.44.26; Wed, 12 May 2021 11:44:49 -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=QRRjW3Tx; 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 S1355314AbhELS2A (ORCPT + 99 others); Wed, 12 May 2021 14:28:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:49666 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242459AbhELQev (ORCPT ); Wed, 12 May 2021 12:34:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8B53161956; Wed, 12 May 2021 15:59:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620835176; bh=Sqj3YWST87hmXhuhOXg2T/RXQkYW65pVPk0SVR/NFjo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QRRjW3TxSyT+LW2C/yA3MZpHZlajo9doegEKZ9NlhFF0Ss0VSdBeMla65AguQAyY3 J1yyjWMGRPk7/+8wTLf11+KELMFrqL9clF0aMHbJEuKnikgT9/KgUMUKwbylA4Vuso mNm2suXJVV5ymrEJg97zFsT3dgnKTPZ2jr5RriqE= 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.12 239/677] phy: ti: j721e-wiz: Delete "clk_div_sel" clk provider during cleanup Date: Wed, 12 May 2021 16:44:45 +0200 Message-Id: <20210512144845.178280949@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144837.204217980@linuxfoundation.org> References: <20210512144837.204217980@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