From patchwork Thu Oct 17 22:51:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pengfei Li X-Patchwork-Id: 13839529 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 55C26D2F7F5 for ; Thu, 17 Oct 2024 07:09:26 +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:MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=2MJPG4jjD/tGPJ2fbTa4lfbpamOfTzslr5V3dRrJePs=; b=x+qgJXhOjaMTRc4VZc6+Z1RKtC 9tKSixCCaRHlsTwOjv67xu9lazrPme+GyNZrz1oagHLd0Ct4rzu22USayhxdO+jEVWik7N5HoREy8 BB9a/7nNY03UJtQxcIFb4vzWhAfsSeszpi8l8VfH//SOV6cO5UHGNfTXVFMoJJNHZ9h1f5skCYFyH VQsMqytKYD2V1ef4n2VlG+6CA/dkbczPth+dYrul3vMuyfDfGl1Joake7crouj6qyOjNrwrxkOGYd is+8cUjTc7cGKlpE4i6F7MnZd/zXrpFZYT8ynkchmEyFSiAB1jbknYStQ05SxyHni9y7YbugluVGI kV1GwUVA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t1KdC-0000000DxIy-0pbD; Thu, 17 Oct 2024 07:09:10 +0000 Received: from mail-vi1eur02on2062a.outbound.protection.outlook.com ([2a01:111:f403:2607::62a] helo=EUR02-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t1Kaa-0000000DwxE-1K0O for linux-arm-kernel@lists.infradead.org; Thu, 17 Oct 2024 07:06:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Hw5h0dPTP5AlehC5wZRsJoQPZ5DERSr/OMRcKuKWVWlyF7btCBQ8bvKbTnU5Pn3QN38UHoRL4e6W9jdFXgGn6owcVuohj9hsh4TM1GTGQb6LOhb/K0FodnJMl7tKnvrz6imjoQ7wjlChnuzBMxz+61ZzHB2FN4UiV44uD31F0erqFZVFcz+NquUh54E/2FPLF0Z9joT916LEaJ+dSn6JojsLMdA8O2P9SQ5GndKN55yFPBAtpjs5UWjTNw06RsUeSaEaqxVrqbm2Fhvwgd3VCqvCAvSyofyim316jOQhqd880/pHHCV/JkwFZoXPcsyQbhUtyCHRW55jKiJzBd5A+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=2MJPG4jjD/tGPJ2fbTa4lfbpamOfTzslr5V3dRrJePs=; b=Mop5jJEHY55siFkU6E10SVBGTUcOr81KF76ba1fXcs+Y5Bg1MJZL13A12H52lWOToPQub7QvltP4o3HCg2nlYZ07TVUcsszmvuxoVueU3cX5a/WoHKwPUR4gHHJA/QqaWcKLpGujiqHdaC/KDtVwnanIPrpUk+1JrLCL0qMUX/zEvKJTb2QDoDxBfzqC5XeSUygveBl6gINCtfwFraA9VxsHy9g85FO2sXb5yARxvET+zS4dV7WVHW3HIBkQTDhMm/Q+RCTQdTRoSZD4fKFIflowVML3rV3qLtloTY2G17oFeRJWf7VLP+TfCD6WLeRjSvtjAFMPHvbRmYPUJRYkpg== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2MJPG4jjD/tGPJ2fbTa4lfbpamOfTzslr5V3dRrJePs=; b=An7+lrNNKy4hNtX/8Ee2v38x8csDk2dxpmVFTXjg9JvpJ7kdSayGl80aBcwUBLfZnr09pL8OXuoJZ9QaJyeNsI3XMEP8o45rFqcmAgyAiG/boz95zhEFe7wPtaL/hSMhb9vptGwd5gM6YxvEoFmfJ6LzLFaifVUs+K1sC4GCZyWph9XrZHCqnK4IcwjPYdYy7fl8ZiwK2WZNNPEF6KR6nJhRT9vpulEwI4GNn+0MoCsmBfjYBGxv4PK6muofNN1VgY+cbMb/yg3IwqIwFBjEia/PKg2ChkUHpuBz5b/EbZQmA2JhJeC/gjYjGJ+edrYckiHuzufVdyDJbr72NHlAGQ== 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 VI2PR04MB10148.eurprd04.prod.outlook.com (2603:10a6:800:224::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.26; Thu, 17 Oct 2024 06:51:07 +0000 Received: from DB8PR04MB7065.eurprd04.prod.outlook.com ([fe80::8af7:8659:9d42:bd84]) by DB8PR04MB7065.eurprd04.prod.outlook.com ([fe80::8af7:8659:9d42:bd84%6]) with mapi id 15.20.8069.016; Thu, 17 Oct 2024 06:51:07 +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 v5 1/4] clk: imx93: Move IMX93_CLK_END macro to clk driver Date: Thu, 17 Oct 2024 15:51:34 -0700 Message-Id: <20241017225137.1158924-2-pengfei.li_1@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241017225137.1158924-1-pengfei.li_1@nxp.com> References: <20241017225137.1158924-1-pengfei.li_1@nxp.com> X-ClientProxiedBy: SG2P153CA0042.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c6::11) To DB8PR04MB7065.eurprd04.prod.outlook.com (2603:10a6:10:127::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB8PR04MB7065:EE_|VI2PR04MB10148:EE_ X-MS-Office365-Filtering-Correlation-Id: 55538ab2-f79b-4d1c-e793-08dcee781387 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|1800799024|7416014|366016|38350700014|921020; X-Microsoft-Antispam-Message-Info: YE/mWWzYjmzieQmfUaWyVUReoFEXfl5fDj8gaV7XZa4R3pyZmD2Q6IgIlouOofCiPS3zDMqKh/go+6Zbyt92MV+Sev9BB890MAzlw0gXcjdwGXrDKK+s0QbuwOrNXidtf9Tc8dV2tE6/sjiflelx1nA5g88x7b79rVkkmrXd2Nlp48SDmt/F/0q7uBjl4AedTrZuGFUj0qspUuAzSshUJd2YwfaKliCSv+lrmm6bYV9Bq8CHgNDw7y+3Q8hlmWg4fyeAV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NR5KREY+6MCdW/GISZ3TE9gGK1pewkbOZVEb0ammiI1j3Zjo8c/vM22v9GN 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:(13230040)(52116014)(376014)(1800799024)(7416014)(366016)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: t80GHyx7ESZYpmrPerh4mSVimQwyfU6rKg+i0vUfFqg5FPJpSyZLhGfc7nhe6hGh5XykXi0sUmrGrmpfw/HD0o/rNEIH9mXe5LkQdxeYcrL1yGPLYjBavlYymSdGD6hW+/RRk8xW2gV+fakRs6IqHbPOxFVzOdgDTMbZtQCHUiyWhGLvuvv5XI4JHLdyvK0AnllxNagc6LR557VUyL4hOd+JM23GxF2v2h53jyZd1WtarwUlk0NfRN3jaVHaZdlJZz0W1AUXTU/V+8AM2zKPnN9b5aQMM5SY5LS6+6Pc+MG968YQFt6RqUznJ8SlPxyf29KGcPeXVfqTohQBOb2OCN699qUAieIEWA0XACj1Q5JgMbNII5Wu461AYStHbio7Fne8NC6883o1rBV1NHwwc34maXHxlkvrQDYjIDzj/wuHpr6wm+SCUhSOsbYJ++6Ww85kdCCiIx3a4ASLiUVt0NtVL7eo8nmSZYkqUVj8d6Ud1d2PnnQ4tgBFsVK6ER5M7E0hALupumcvjZzLf5laMUqx3PfqxY7Hp0oIrSf8kRece+oSB5S1ZnMI7fcyJ+07BvgeJoySvRmlA3fhHFqrXdgsdyU2g23/eAEqolcAhfP9buu/2B0DA5cpevMrj3bGF+Bdb8ufHKMGRN1oWcIId4zWpe2aKpxoUtdBJCtRzgiWTBnhz4M6dAgkpOO2cEZ/YFYaMP7t9HUo5TpTVsBenKyn/eSEuj7xjwLLf2vd5DHHt6DiYHHgNJBQRCT6CWhBB1MaLpkBcNyDhmmcJ9EzqsYjgFKqVHPeGwBMiBqB4Z0KIzJwZFfmGgYeoovENUTAS3wMZTsMPX0WTzp6cmHZdpThss+U7roRNgu2wtevgHWCgETyn7KkbI15Tp18ZqrFsQ0agBIUA2G2RenvBrFDFeeFr/ERyjK5jeTiaC9L2eQV6YiOqxnmW6IFw14ARpvWOqI3JJvUOBzdUuShmGVWe2c7kEVZuTeNUMZUxY9GqQ0yY8xZvbjMWOixHYJqgBAmr57gGXbf5c3nTyJclpD8pqMVBB0VSuuH2O9nz+KdljJTx4sf7uuAbEEwNjlPL3Pk4X9PymPf/qoCzPy+WwNEUkTT75vgeI/1rOjvPSQs2lmFJy6WOXZFJdNcwcAoTCOWH2Q9lACq9M6c1MVpeXqPvg83qGYzyCkyLgN5RkUcUBYPYtJ3rCkzBmXlgOseeFGDkE/L+vIyjcW840larbX4FKMtzULEQfI7ahcaLyqQGu5mN45FhLizAZqAuJsnqLoAKDQK5YHLYbAuRNxi3Xw9oEft7D5bzPBVPoGPyNVAA1U94BDQpLgJpMnnt9B2w2tPAYgkeFnxTlmoMOd6KPxESnwDoVZS1BcyX1IlL1bQh8QectZ13ZERsYQj+S1cb7SOU8LkZZiN4HcuLBeXWDWeidQ270bTRtixXvsqut6hni86+XCQrE9VR/L7T0GEsRKq4NsGM5fl20O7IWisrcs+R11ELXcktI6yzfj0O3iUVnVNbYVQsPtWOhyIaAxI2eRx6O5JmJZhVD19SjogwKvJU9+FkJGwUYIKKVmT6sk6HnsJtmlv+Nr8u3F7pAIkvxBm X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 55538ab2-f79b-4d1c-e793-08dcee781387 X-MS-Exchange-CrossTenant-AuthSource: DB8PR04MB7065.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2024 06:51:07.5588 (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: bDWAWyYvxb/fuCeT12Rupumxg2lov1V2rWOr5foZkQRsVV6p7HszZ5DO52Kg8+uUhYHWhe30Im5CAEHjWEdLyw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI2PR04MB10148 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241017_000628_362432_1CE41083 X-CRM114-Status: GOOD ( 10.39 ) 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 IMX93_CLK_END was previously defined in imx93-clock.h to indicate the number of clocks. However, it is not part of the ABI. For starters it does no really appear in DTS. But what's more important - new clocks are described later, which contradicts this define in binding header. So move this macro to clock driver. Signed-off-by: Pengfei Li Reviewed-by: Abel Vesa --- drivers/clk/imx/clk-imx93.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/imx/clk-imx93.c b/drivers/clk/imx/clk-imx93.c index c6a9bc8ecc1f..c8b65146e76e 100644 --- a/drivers/clk/imx/clk-imx93.c +++ b/drivers/clk/imx/clk-imx93.c @@ -15,6 +15,8 @@ #include "clk.h" +#define IMX93_CLK_END 202 + enum clk_sel { LOW_SPEED_IO_SEL, NON_IO_SEL,