From patchwork Tue Jun 25 17:51:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pengfei Li X-Patchwork-Id: 13710433 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2082.outbound.protection.outlook.com [40.107.22.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 99BE829428 for ; Tue, 25 Jun 2024 01:50:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.82 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719280212; cv=fail; b=uJyKI9PmjsTN2MPzgDZAOMBRmepe2ZlbjgmxKzewkZ5gt67q7kYelOUJDbpotOHIAkxob6hOF9p8PrKcnjdl+hQoCRTr/aHQSM+1YWMXv4Rc54VAS9xvMeFfWuqiVetV6qJJwW5aeXZosqBZ0NBSHv7688C6/3jXreOm4Tmi+0o= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719280212; c=relaxed/simple; bh=zSc3MjhCIfC8AjDbARmYT+88SyirAU3GV1ZenT6zc2w=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=AIxDnNfyOyZAUBK8lzjFDoz2cajgdvB8mxkbXfGZu9pLwsYRCyX0Y3RU+xk9HsHUsBciNe5ASVd7DLTPaAr6h+7jkQSB7iOTIJjelQhK3EbtZaHVsVfmoAGE6OkaE1/QziTwRtmg9vKIzijxHl1vfPbqszoPzVTkCSlsT1ri5pk= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=gofaumJx; arc=fail smtp.client-ip=40.107.22.82 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="gofaumJx" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WoJvvvXg1uNaW37qK4Pn84QE8agrtjNBoTkYxp3Iis1pg7+r5DbCXthgizCa9rCyV6QTaB6f+HZGeDiCjWBgxYuXBvmiLJk2GJHqYa83Lt2nCUYKvzwbk0RGExMOYyYdRfCkp3iK8/bcYMFQJMhaaoEOC9f+f2CPngwlfoGUq2G/XfndbPul9BWjixN71xe2Oz8agl7sVCfeSWhEo2x50F1pX1qed+o5oulsFPF1VuJTjVw6iwDud9PuJWJ/z+UomUe0QmO4j1nEt1BRhYpCDZbGPRYB5jss1Nn5ldLY9TsOe9rF+aKqQKA2j32ZGoYuaDk3ycVnodulObuT9WAIuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HyB8OvVTfRDbfqjh7YCnCbwhZc3Z75NK3flFYNlKZRI=; b=HMgGtVni3Mo5CFuWO0gjd99jTwFTQJiPBZboJZ8dGeo4xpWfGbhUjOBjzmYaHM6uCb7M3kXUiUvtzk2dczLDeXgyVEoKmXkas4uMTqAkFOHlsDwnf84qrQ3XkxB7LQawCs+FdCQVJr3DP/vyE0+LgoaPsG0ss1s0Xv4y0yGUVGskwcnk+r74QIGydzphxFQrhuvuroM+vNo/1Zi6GCMaXDKBRYiIKacPjqC+XSYKuxTvKVAz0qZa8jkHdGiK21d/l6F3Uj8Gr+OVvpSNr4nRmfQovMwpsVKgVYxN08D0HcF2/8XxxswweGtlRBkOBuIBw+Wycvok6k2OW2iIhl8Edg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HyB8OvVTfRDbfqjh7YCnCbwhZc3Z75NK3flFYNlKZRI=; b=gofaumJxMbXFncwN0tU4tCDlsjAroT8Dqi4E+CXQuxxsjOaOvJhVzGm3XO9EC6KAJs7b6wO26kDCXCQGvYNPMchiRkTleqt5wXypTLorMelCSPt7PZmEn+UT5U/6VmefY1q7gCF4+32QoRuKPkyn0KvrJ3NUZakdnyOiWnD+KwI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB8PR04MB7065.eurprd04.prod.outlook.com (2603:10a6:10:127::9) by DU2PR04MB8965.eurprd04.prod.outlook.com (2603:10a6:10:2e0::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.30; Tue, 25 Jun 2024 01:50:08 +0000 Received: from DB8PR04MB7065.eurprd04.prod.outlook.com ([fe80::8af7:8659:9d42:bd84]) by DB8PR04MB7065.eurprd04.prod.outlook.com ([fe80::8af7:8659:9d42:bd84%4]) with mapi id 15.20.7698.025; Tue, 25 Jun 2024 01:50:08 +0000 From: Pengfei Li To: krzk+dt@kernel.org, robh@kernel.org, abelvesa@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, ping.bai@nxp.com, ye.li@nxp.com, peng.fan@nxp.com, aisheng.dong@nxp.com, frank.li@nxp.com Cc: kernel@pengutronix.de, festevam@gmail.com, linux-clk@vger.kernel.org, imx@lists.linux.dev, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] clk: imx93: Drop macro IMX93_CLK_END Date: Tue, 25 Jun 2024 10:51:46 -0700 Message-Id: <20240625175147.94985-2-pengfei.li_1@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240625175147.94985-1-pengfei.li_1@nxp.com> References: <20240625175147.94985-1-pengfei.li_1@nxp.com> X-ClientProxiedBy: AM9P250CA0017.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:21c::22) To DB8PR04MB7065.eurprd04.prod.outlook.com (2603:10a6:10:127::9) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB8PR04MB7065:EE_|DU2PR04MB8965:EE_ X-MS-Office365-Filtering-Correlation-Id: 1adeaefc-bfd8-410f-8fe0-08dc94b92412 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|376011|7416011|52116011|366013|1800799021|921017|38350700011; X-Microsoft-Antispam-Message-Info: M1WHTeNDZAKN3xFYggXJEr9HoHOk2mQA8XpL+FZAy3ozRk7iBH19txBQxsNCkiYxIqazGXhhBNvxcKBXvYi0TLzaTelB8/hFHCqX26fAE9Tvan7YoYVQckalAhl6DeG5VJhEr2PTH/kXtT56Rx9wG44UeMuBUuH6Gw1Wa6T9QJmAC2j/0D2s+lDCtzLhjByCU4b69WO3ZfgTRB3rK05G00y/5PR1xS5Q2vEnUxf7Bn8k73vdCprgfiF7JZyyKBd6dzWYQBCSvCTfdCF31CGE0L+WW+qdro6q2IQj4vr8kC677tTbyKocOvHk+wZ2AS7xM0RgaSWJZneV7pYz7yEze2OUX4Y5Mbt3vNeROnuJX5Fb9BvXSmY/5Vp3YhKCclwRyBQEHixFFcw5LKI2WpkH37bLOGmsu1GXwxSE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com;PTR:;CAT:NONE;SFS:(13230037)(376011)(7416011)(52116011)(366013)(1800799021)(921017)(38350700011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: DfZXvjiN+W9DVdDBi+2dlVt4L+Ld/jdJKFG7f4xMFuomXYcKoTFZpYW/0rmjP+iOzR2hfONjmLQ1bbLt/zFgM1gvA7lkYbIYYDOcnIH/m2L9IuhK+arrwbIvdipF0mO/ns+5giwGIYzymrxklaBwRakHSfKkIPj6ara7Nn58JnGue9cla7Cle8O4qcYrIIMz2WEo01M/3xS1i4a/wvzB2V7QxNVPoBHOdV8PFP5wfWyswWLUaR00C3mD4MbCPyPRKU/Pe9VUoh9W8RwFjWG2k1r4qqMG78E3hjc6t12eiPGv1cJfRYV71jqnqLjGK/I0p+EHrThMmK2OKWI6BHeyspHM//qIEtv6viZmQvMlhfOEoghInigkxGD6AiDBvIjf0xg02rQeX5Dc5JTgsQnl2/XfsOZPI/7N0AUCaRk9K3uTJzGzkjDlG0VYgzAmv8PBTFjvq+XIxepjgIFMmtslah8hUu3RjYGlITFDj6lvhnSAtpQKJ/QTH9YeE4aAnyf0UTS7k3STlwGHUAF/wEhBAnNNwJ2o4RDyPmt6vDVspMggwdW+pfG6CEEjx4FM20Hb4I/8wA7VIyNdbPEx5O5boFItKrHQQNTvRnibZADVlzqS6t3mSEp5XctXnO95t5WouR19ggdmJH2uH/Jvwodqjvsh5JpE0I4EYF+rOsimhY8W8dPwowds6hIBRVKIGwOtyN2PdOgpw5OspFlz+nu8N0ltETOIJ7Zj3d0uOpq+HX9UOc1/cuJOxKpa/31eC57S0HfnMxkJyXOVdIW7Jqoxf/5tAy6IlJICxURE0ham0GS4e81/Kmp6RCT5P+QLOsu/XO2v78NPDUtH0zqMUWMAPpAUqXs8w6+RHZyj6avpBAxlstDHLgEHpodwWTynqtNT3y5QiWRqL0P6XzSPsCBHzim3TNLRgSUsVRqWD1j3QD9Vprl1G7pujD1QqaEWY7uOSZiLgScSHfNtB91W/MjEcCRhtc99bJiyA+iF7ew4f4pvl87DLD1ojdHFbqEiMA1Wh83kXOFmqLdKJaiJSAeR3kG9ZVrDuPbFTTDTpalbMhujuL7GWPb/TuCtlfnDwQutc8NASSIyIpFaVSCT7OvzDPL1/0k2zVDED6wY6plfXruo2bRRH8FFRYTnCSkgAVT29pYfII/t3nFsZ341UGKYZV6e+Ud+40S+PeXCMLfDrp4bKv4ibF5P6Te4RHmxLCQ4VhtKZt6DJhs9FUhtvCC6poTIqfT5zo6F+bq77B8ou4P/qvRx8sdM2UBY9G0Kg+G/XXY9F0rx2oNZDr13tSB6SD8mNeI85Ig5tNd5X6G58xafHEvVlGCywaU3r2oi9ZQq2Nif5BYvJ3fQDElGCUDGP9h9+i5PTm+Su58tM4DSC0rU2+OY6uwaqcd1zSieusJX+KjAbUlGhvGjS1Qxy90/PLH5uRcLRkdgt2Rq2HLpJ4/2VYjwvx0sZ7g09JdbRL3phsk9EN2Vobpd5ldYANQ+IEoE0awzr7x8LFOLAiotisQ8SK7v1gxPHDoaty+Htz3lHMEypFR8a6JfsYBTXxHCrATsxlh4Xr/S0/QAJF+XKhj5Flj7lFRBrQ1SZaevxWmW X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1adeaefc-bfd8-410f-8fe0-08dc94b92412 X-MS-Exchange-CrossTenant-AuthSource: DB8PR04MB7065.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jun 2024 01:50:07.9697 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 9svq1uYBDFLJric7p2ig4j8scoSt0XYs7fdbowTj5dSy+0Wq9HHx1wDU6tV8c9qv0zTECRkaSdUipPpUCdvuEw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8965 IMX93_CLK_END was previously defined in imx93-clock.h to indicate the number of clocks, but it is not part of the ABI, so it should be dropped. Now, the driver gets the number of clks by querying the maximum index in the clk array. Due to the discontinuity in the definition of clk index, with some gaps present, the total count cannot be obtained by summing the array size. Signed-off-by: Pengfei Li Reviewed-by: Peng Fan --- drivers/clk/imx/clk-imx93.c | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/drivers/clk/imx/clk-imx93.c b/drivers/clk/imx/clk-imx93.c index c6a9bc8ecc1f..68c929512e16 100644 --- a/drivers/clk/imx/clk-imx93.c +++ b/drivers/clk/imx/clk-imx93.c @@ -257,6 +257,20 @@ static const struct imx93_clk_ccgr { static struct clk_hw_onecell_data *clk_hw_data; static struct clk_hw **clks; +static int imx_clks_get_num(void) +{ + u32 val = 0; + int i; + + for (i = 0; i < ARRAY_SIZE(root_array); i++) + val = max_t(u32, val, root_array[i].clk); + + for (i = 0; i < ARRAY_SIZE(ccgr_array); i++) + val = max_t(u32, val, ccgr_array[i].clk); + + return val + 1; +} + static int imx93_clocks_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; @@ -264,14 +278,17 @@ static int imx93_clocks_probe(struct platform_device *pdev) const struct imx93_clk_root *root; const struct imx93_clk_ccgr *ccgr; void __iomem *base, *anatop_base; + int clks_num; int i, ret; + clks_num = imx_clks_get_num(); + clk_hw_data = devm_kzalloc(dev, struct_size(clk_hw_data, hws, - IMX93_CLK_END), GFP_KERNEL); + clks_num), GFP_KERNEL); if (!clk_hw_data) return -ENOMEM; - clk_hw_data->num = IMX93_CLK_END; + clk_hw_data->num = clks_num; clks = clk_hw_data->hws; clks[IMX93_CLK_DUMMY] = imx_clk_hw_fixed("dummy", 0); @@ -335,7 +352,7 @@ static int imx93_clocks_probe(struct platform_device *pdev) clks[IMX93_CLK_ARM_PLL]->clk, clks[IMX93_CLK_A55_GATE]->clk); - imx_check_clk_hws(clks, IMX93_CLK_END); + imx_check_clk_hws(clks, clks_num); ret = of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_hw_data); if (ret < 0) { @@ -348,7 +365,7 @@ static int imx93_clocks_probe(struct platform_device *pdev) return 0; unregister_hws: - imx_unregister_hw_clocks(clks, IMX93_CLK_END); + imx_unregister_hw_clocks(clks, clks_num); return ret; } From patchwork Tue Jun 25 17:51:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pengfei Li X-Patchwork-Id: 13710434 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2054.outbound.protection.outlook.com [40.107.21.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3608C21A1C for ; Tue, 25 Jun 2024 01:50:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.54 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719280221; cv=fail; b=cZcslpkrYVzB0qIlzvC8gbQAuHCExuYrGUES2wJLLCWTY6rYkeWoSAYVkK4gQ5qB6hgUoP6Qyoyr01aHGaOcBi7mRdJAvXDZ5sMLJcvySWMBdqLYlHF1I0Z2/PweaMyEo6jXa+gQ/sehCYIGk2L61s3ph7RZlGV1TgTwyizCNxk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719280221; c=relaxed/simple; bh=gQT5Ex8gffizdxeEwhJIjboK1q1LfeHy4PmbLwgo/pA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=pkwAMwa/1m8Djh9soulw5f6TCudGyz6Idw5BziegtvAU9eto8aLZBaLNHs+oabECD7zxjesW14lHpiGBRvzohyJAYpHvXDZrAQ65Dx5r9H5teNyuWHPcKAKqimEuwANNm45K5fPlOOxOY2PRCvqjjpgZXbigf3dR7EBZbtt7hNI= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=ZH2e17df; arc=fail smtp.client-ip=40.107.21.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="ZH2e17df" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hQdklvFdAMaamdGZM5buujI/1X3vzeurmlLQ9nLfYox8JBdi/ScgFRy+0ADG7XUqAbfEXERSu/Ltrsqc8uOmazq5hDdlYi65geFlFx1KaAfdnIVCjpB1WVD3Vxfu4kpeXz4NhEtCXJQiNp8JlEQQH8IR+uhHK2wrmyI7fdyNvIVPDX0db260G7GO4blt8QxkqaIggrdhiU6hNVWwex+/v6swmldamMjA0v23iLEql6J4zSk1WZ0853ay2HwrhU+UKtL2rP7YbNrxJatSdKZuFxp8Ojau/jqRqRF4RpAPH/zu1X2WMYtFHjfTT2uxfgQep4xRU7Nnyza1U1aYvX/saQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=2QZH2YX3rWAv4l6hHsJW4LfTksut3YCn6Qp65bhVg3s=; b=iXlI80hZsd4z06Tnxpg23krfAoNraumxyO/dPq+2X9nGZ+mvpd0kCYarDpAL+8enFV7Sen/7cEw8K0fW7UkDnkTkFHSrXkEv/7wITnfu4TrLe4Ehc++HZP6BhQswBAPEVe89ZGx0ZRY9QnGwXYG3uLQKGiXDupMtHK6foOGPNgz58H2BW74vPUrO1XZA3YwGhpx2Wv4pMIHTIa4XUJbQWJLK/acGiLFgnMs7e0ayoEU3Fi97gpxVEV2DeUZYEsffpLpSN18vM6+lcx0ZsaSFG3tgrJ24XLOJzeMBkFQ7dISFALWAquwx6Y2VlM+K0z+hoIjXiJOr6gDVbZNtr5IGmg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2QZH2YX3rWAv4l6hHsJW4LfTksut3YCn6Qp65bhVg3s=; b=ZH2e17dfEMGPPnX+wqpemGDcHMMIwH52vZdVFgJ0d74VOxpiliT4EnOqfDHmtqKbMXjEE3PXef0HWbgQhaA+u90vM3OGpZ7C1UB0v6HbPBfR2PxvMKNZTRJ4ERuNHWdgtz0VuOh3V23Y7am0YEpozZkI5Cm9TTWN2g+7nzxms/A= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB8PR04MB7065.eurprd04.prod.outlook.com (2603:10a6:10:127::9) by DU2PR04MB8965.eurprd04.prod.outlook.com (2603:10a6:10:2e0::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.30; Tue, 25 Jun 2024 01:50:17 +0000 Received: from DB8PR04MB7065.eurprd04.prod.outlook.com ([fe80::8af7:8659:9d42:bd84]) by DB8PR04MB7065.eurprd04.prod.outlook.com ([fe80::8af7:8659:9d42:bd84%4]) with mapi id 15.20.7698.025; Tue, 25 Jun 2024 01:50:17 +0000 From: Pengfei Li To: krzk+dt@kernel.org, robh@kernel.org, abelvesa@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, ping.bai@nxp.com, ye.li@nxp.com, peng.fan@nxp.com, aisheng.dong@nxp.com, frank.li@nxp.com Cc: kernel@pengutronix.de, festevam@gmail.com, linux-clk@vger.kernel.org, imx@lists.linux.dev, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] dt-bindings: clock: imx93: Drop IMX93_CLK_END macro definition Date: Tue, 25 Jun 2024 10:51:47 -0700 Message-Id: <20240625175147.94985-3-pengfei.li_1@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240625175147.94985-1-pengfei.li_1@nxp.com> References: <20240625175147.94985-1-pengfei.li_1@nxp.com> X-ClientProxiedBy: AM9P250CA0017.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:21c::22) To DB8PR04MB7065.eurprd04.prod.outlook.com (2603:10a6:10:127::9) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB8PR04MB7065:EE_|DU2PR04MB8965:EE_ X-MS-Office365-Filtering-Correlation-Id: 01079968-ed46-4fc5-7884-08dc94b929c5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|376011|7416011|52116011|366013|1800799021|921017|38350700011; X-Microsoft-Antispam-Message-Info: 3MJW+rJ2kIU7vIP5a+IswvpGZBmbIvaXVFEmRiNFnXC40CnKtBnxA226jRRb4kVoLM1XZ2f326sYVCQY+E6XhZKzibrkzz0It2K5iq0jAZmUBiudEspI78yiSHFxIXstPrU3NsIEYzRYkWgkNj1Q1MN/UBPqHYGc5G3SvuN7KgAOsgcwh3ivkI8HSrwinQ80oN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nrg4vp0ZFPt+fhwScmOQs9bCgXQLonruPjrHI3EiOuqt1gucVVybja1GbX8yl4D6QT4fgEH68TYSyJn5d+p9hSr47Dctdqn1FvkdmAK4trssf3bqa0eq+pbHyGN3CV1/egJ9j+m X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB8PR04MB7065.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230037)(376011)(7416011)(52116011)(366013)(1800799021)(921017)(38350700011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 4LUaWAfbXJ3OCUECMENWJrOIWdVtyK6MlyeDmNm5sUO7YRcRYQb4zTJDtCeP353NxBz7Xc2oxxXJSOER8zc7s3kJ+rexXMSqWpFXEtQLqBNnavOMeXpGMz5AAXtPGj5nRkZj0KAQzL+asYgTaAh818EKJjLHNjWe7WkRHvxK8HabX0j6m/VK6ik1nT5KPdmx9YepdS9NQdEJrhvagywi3RjQAJUOZQU6yEs9Jc3uh8gT4mV5cQEOn1VV+D8vPdEidFTqy7xJ7P7jkovP0agv8ntiHKS47oX1tUKbFs772T1U4T0R3Rcsp02x4xduUwWr0OkiSw1OT9+hTd/c0T+MBXAomk2mmiV4J+hwpFvQI+369XgSEEoj2Xb7mHR0jaEubZ3sU42Rh2Iepq77/3DJMavOR9bHWrSmg+no5nBPuWfa3hrPqGx9KNY7VBnSV/FnvaYkPXiV0KGRdrlWPJfUe8MWbpMXKA9xIT+bJu0jAlON4wmNGLflqA9u9+a+4cchTyu5ma9A5kDL/1hQ7H+NW4+6+n9GFuKt2UvRLxV3/ZCpIouNZPmFliskDlEimHG0PI7dTJuKNJSja8sSX3/VVcuIkVvakFHtgsGDh0YCTqcdesHB0Z9aEVsBsyI4hqWLDe4Hv1XIdp0Xll0YkDuWrV6QzTh9xKHzx3BJMxGah8KFioFLZTyhbjbViP8717uHtoEybqA6WocQRDLGS41SNkBi9OUAhJxi52PtBNcANohKX8s58IYyXHZiTltknujj2mwus841dnY/yuMkwOEjkvpyiQFlhScC/ZFHVaTWKesTodpLZ4qFZ9wx4QRRxTPg0cTLaywxB7Cjm/YnvQrWyAEFaZg7WaCjapNdcgYHVxjwsbKZHjZQEVyArZrN7SOq1+bJI8sq+nqfyV297cECDunlZTnsYaV3ksET5PR9NoT+udMevO23j8BYzdbYNJxaoJJmmpkVtZZO1WgIe3PPyfYBQ/Z7dE43HGqHirsW3IU2TI8WcYzsACVOLhm05i8ifxgilwJzSD5vqayA815qnfvxdNF5+qTM0FsmD7BlnwMOF9vNxepXFx7avjRMqrVbzKVkGtck4c6zsSlFyrzXBvpmhOL5DTMnavYkLllVJk8+81rU0SOjGm2lnkkhiPLk5AEdpKEp38BjgJJCQswCNvEwQP8bpx4bcu4IXQTgMxXtKlLdE/wj/XH5uuxW0MNUa7Uh95ABPdq1U8C0F7/PN/AwCaL86hB69caDDZO3IOiyl5ZSK/1GKEdO4vsETiDehCdT4Zniuuy6EbgtbN+2Sthfe5KXm7GEcqnLcQj4vtvn4ABnhA8gG4ehra90Hmw01ADdxPmFFgHO254/PZu5WwfAzhIPwYuFvX1u5fe0ZMAOuW/Y9FAkL0WDIJ5KjTP7zxdaNtm65pa0rk/56lJU/gnRJqjO0Xe88+eWLX/k2byUF5x6gidr9IdMOFXJJzKumMtV74mDzn4aTLS5l2W+j8IEvQGQaacJ1WRulKIk4TGyoA7GJcxGruyaVp31HHLvnlW95aP25+7nHZc0u7yO1DB97KxhKQuWRDDY36RrmAANiPeyT/v1WGtB5w8Keahz X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 01079968-ed46-4fc5-7884-08dc94b929c5 X-MS-Exchange-CrossTenant-AuthSource: DB8PR04MB7065.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jun 2024 01:50:17.5507 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: bn7OIeUyIB3s5TOEJIaMyvw/fZo2kzDZJYTrg/Io3TPYYmigsyr/ZsqxDDMoRLTSmGEjyVqJxVDRiM419bE/Gw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8965 IMX93_CLK_END should be dropped as it is not part of the ABI. Signed-off-by: Pengfei Li Acked-by: Peng Fan Acked-by: Krzysztof Kozlowski --- include/dt-bindings/clock/imx93-clock.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/dt-bindings/clock/imx93-clock.h b/include/dt-bindings/clock/imx93-clock.h index 787c9e74dc96..a1d0b326bb6b 100644 --- a/include/dt-bindings/clock/imx93-clock.h +++ b/include/dt-bindings/clock/imx93-clock.h @@ -204,6 +204,5 @@ #define IMX93_CLK_A55_SEL 199 #define IMX93_CLK_A55_CORE 200 #define IMX93_CLK_PDM_IPG 201 -#define IMX93_CLK_END 202 #endif