From patchwork Wed Jul 3 08:52:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shengjiu Wang X-Patchwork-Id: 13721547 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7399BC30653 for ; Wed, 3 Jul 2024 09:11:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc: To:From:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=Ns7mV37U6+NlJCIHYDJfyt10hpJpd0Ti8hbuIFCqSzw=; b=VeLWszUvgZ1IWun4aNrG39H4vI 5hFcbkIsdnEf19vdpzy0tgxSRRPvYAKyq/Ho8NQ1zl+cjvckaXz/3Foz3SdM/Ofm/K70hE5HEgeLJ DIDjaX25/jkcc3+4xnxYofVpq3uVt8CRKfQt7DiJtpPwL6ryWTLD2zQW+jRwSiu6cyvkZ7/APyG9Y dVtHPZK9g5LzACOYGjiqXDoWYE5h+MG1WclhiqVnLda6GhQEfdaRhRcko/KNdJneHD0mN13fIN6xV CxVMhRyeGG3SSqCtrRyIPKqjrJWbAch/cqyYS83nLKk6zZo0oQDdZq5lrxmeefrPuujXCdVdyOM+3 QzVhhKPw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOw10-00000009WJw-3ygv; Wed, 03 Jul 2024 09:11:02 +0000 Received: from inva021.nxp.com ([92.121.34.21]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOw0o-00000009WFF-4A8o for linux-arm-kernel@lists.infradead.org; Wed, 03 Jul 2024 09:10:52 +0000 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 591BE201977; Wed, 3 Jul 2024 11:10:47 +0200 (CEST) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 1F214200508; Wed, 3 Jul 2024 11:10:47 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 69C7C180222B; Wed, 3 Jul 2024 17:10:45 +0800 (+08) From: Shengjiu Wang To: abelvesa@kernel.org, peng.fan@nxp.com, mturquette@baylibre.com, sboyd@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, imx@lists.linux.dev, shengjiu.wang@gmail.com Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] clk: imx: imx8: Add .name for "acm_aud_clk0_sel" and "acm_aud_clk1_sel" Date: Wed, 3 Jul 2024 16:52:51 +0800 Message-Id: <1719996771-11220-1-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240703_021051_181328_43AD3F28 X-CRM114-Status: GOOD ( 11.18 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org "acm_aud_clk0_sel" and "acm_aud_clk1_sel" are registered by this ACM driver, but they are the parent clocks for other clocks, in order to use assigned-clock-parents in device tree, they need to have the global name. Signed-off-by: Shengjiu Wang --- drivers/clk/imx/clk-imx8-acm.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/clk/imx/clk-imx8-acm.c b/drivers/clk/imx/clk-imx8-acm.c index 1bdb480cc96c..a1affcf6daff 100644 --- a/drivers/clk/imx/clk-imx8-acm.c +++ b/drivers/clk/imx/clk-imx8-acm.c @@ -114,8 +114,8 @@ static const struct clk_parent_data imx8qm_mclk_out_sels[] = { static const struct clk_parent_data imx8qm_mclk_sels[] = { { .fw_name = "aud_pll_div_clk0_lpcg_clk" }, { .fw_name = "aud_pll_div_clk1_lpcg_clk" }, - { .fw_name = "acm_aud_clk0_sel" }, - { .fw_name = "acm_aud_clk1_sel" }, + { .fw_name = "acm_aud_clk0_sel", .name = "acm_aud_clk0_sel" }, + { .fw_name = "acm_aud_clk1_sel", .name = "acm_aud_clk1_sel" }, }; static const struct clk_parent_data imx8qm_asrc_mux_clk_sels[] = { @@ -179,8 +179,8 @@ static const struct clk_parent_data imx8qxp_mclk_out_sels[] = { static const struct clk_parent_data imx8qxp_mclk_sels[] = { { .fw_name = "aud_pll_div_clk0_lpcg_clk" }, { .fw_name = "aud_pll_div_clk1_lpcg_clk" }, - { .fw_name = "acm_aud_clk0_sel" }, - { .fw_name = "acm_aud_clk1_sel" }, + { .fw_name = "acm_aud_clk0_sel", .name = "acm_aud_clk0_sel" }, + { .fw_name = "acm_aud_clk1_sel", .name = "acm_aud_clk1_sel" }, }; static struct clk_imx8_acm_sel imx8qxp_sels[] = { @@ -231,8 +231,8 @@ static const struct clk_parent_data imx8dxl_mclk_out_sels[] = { static const struct clk_parent_data imx8dxl_mclk_sels[] = { { .fw_name = "aud_pll_div_clk0_lpcg_clk" }, { .fw_name = "aud_pll_div_clk1_lpcg_clk" }, - { .fw_name = "acm_aud_clk0_sel" }, - { .fw_name = "acm_aud_clk1_sel" }, + { .fw_name = "acm_aud_clk0_sel", .name = "acm_aud_clk0_sel" }, + { .fw_name = "acm_aud_clk1_sel", .name = "acm_aud_clk1_sel" }, }; static struct clk_imx8_acm_sel imx8dxl_sels[] = {