From patchwork Fri Oct 28 09:52:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13023330 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2DBDFA3746 for ; Fri, 28 Oct 2022 09:52:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230271AbiJ1Jww (ORCPT ); Fri, 28 Oct 2022 05:52:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229841AbiJ1JwV (ORCPT ); Fri, 28 Oct 2022 05:52:21 -0400 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2071.outbound.protection.outlook.com [40.107.104.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CEA7DB546; Fri, 28 Oct 2022 02:50:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Fj9umIzwpBHtOFP9KEYQoEFJm7YgshCC8UPuRSo9L0k+XBoBRRtNywSAWlIepdOoJ1ok6VQIJSeESg9uivjbUtQSlvck+nbD03LDssG/XnuPcliRsLmvUk7lBL0iLiRXSOCXNB5XWd8wPvMeZ6LERUIx67xexoR+nXrohYph2Euv9TMKzrXBa3G/2eRPGel5JUSrdv9y0GVunV9W73stFue8IUvFnHdZvaRWOjfYXqJkSLfSH3WiUIzA+RIlUd3L0bBebRYrscWJIVS7xccfoB/e8V6HsnbpnKXJbrhA09KHvdcDb8z4hOQ0tUm74NchOKCjGKmxnAuYcSv+pld6Kw== 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=dCK4+CAft4YD+4vtWrpNNJ50gAt2GZlH8Q7y4AflR0s=; b=Nanuh1zZP/F/Zpm2Hsv4JNC1f0TrN8cqOJioKnMu5mzbA9EM75pE6wDAXibrtgPt0mWZ1MiYNtW1TCPHJ1QKf325UVq0UgjWVV7OwqzxRrVp4ZzOBr66exlek2kCL23VxlTzvY0FxRY0VdGohVKSWKYVDmOUQnHuEI/XPDVvSPr5eEZNaHA8WmNEvDzcKoFR4KpJaZ41re+U9vMtgBONCEKC/9VmfLdqDwkQSP/6nI+U4OG9H/ZZolQVbdi/qFU9tWWq5Nt7J1HsbYCzf1i4US6u/S160jFnFvNNi52+cxdZh6oP4e3zgGutzq0sNj6hzsDrAuJH1mCkxV/BiLv9EA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dCK4+CAft4YD+4vtWrpNNJ50gAt2GZlH8Q7y4AflR0s=; b=V2CwWqrhfgskByAXfH2Ek0GqA9dm39vznviod0E6cGhKtjSBAupv85tuJoO9KA2qyfnRzOj98vkX8t59vsXs5Otc9Byaw7b8AYSfgEow7zdbtMArZS9axNJyEtHUMlRprmKhkBvugejWbJPyyFYY1VXiuwcDrKtNKKOyNIZTb3U= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by DU2PR04MB8853.eurprd04.prod.outlook.com (2603:10a6:10:2e0::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.21; Fri, 28 Oct 2022 09:50:54 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::1587:379:da06:2f18]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::1587:379:da06:2f18%5]) with mapi id 15.20.5746.028; Fri, 28 Oct 2022 09:50:53 +0000 From: "Peng Fan (OSS)" To: abelvesa@kernel.org, abel.vesa@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: linux-imx@nxp.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Peng Fan , Dan Carpenter Subject: [PATCH 1/6] clk: imx93: unmap anatop base in error handling path Date: Fri, 28 Oct 2022 17:52:06 +0800 Message-Id: <20221028095211.2598312-2-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20221028095211.2598312-1-peng.fan@oss.nxp.com> References: <20221028095211.2598312-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SI2PR02CA0050.apcprd02.prod.outlook.com (2603:1096:4:196::11) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|DU2PR04MB8853:EE_ X-MS-Office365-Filtering-Correlation-Id: 2b2d0535-d001-4b5a-1477-08dab8c9e73c X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xrRnHSo3YZCLnvKzyYTiCNwKcZkl6eh+46O5Em+V7E67GcF/nCW4wN4BQh/aJINDCz3/4iiLONpkAY7z0Dk1NvLWHLh7W6NXqkBP1OI775ZGZdwNWFD5zkkqzG8+rE6b1OCaPiP6L4LRmE40joHYvd8xeIckei5YJKd1M3mVK9uNaLuBrR+zlaIeLnAt5JJT/9X2f2yKJH4LJv5pmcZKUmVKN7GKtcyr3m3oA6KtX+dnG8JeXaWHJsOyChrbHmkLmrprpfqaeVVK/UlCQLP40jOUgHHKcv6mYNjOkQD/uH2Nv70pUv8g50SYNVh3lima4NqMTPJiDEok5QbD8EZxj16hJRAoF17sR+LjAX8t6HlZriXllTyXD8skxCgDhez9jCaHpBopkdg7vqcdM4nOhxAEudURWjz5nhZ9MtdHcVMMjtMPQrq7dbViJrxnilb/rFJ2WgRfwheidsMK+UzMEgwEPmOtX3xA4hxIRgco4GbLRXPe9H87zHIfah2RsoVO7HyWRpa55xmIwydmdOU+totbqNJOfxQanxsmCaazR82XSloc/eIB9R7nR8bDfZynXagGsoWEAxs9dBU5K9xQXK52G8pjAaO5FGAs1z3ds9APOfK7wrdf2dYpvMH1SVBEhq3Zq2IMch+4AuEnbuH1IVx9XPtLVa9eIIQsHX6Oc6PviqumzZoijr56YF+vrHFTZTflSvEi1BsZnbnE9EYHPjj1I4GUOvSS7K3USnRYCCIIHG3Eg+j94xKBSsnkxjbFbsULZhpgSvdVK5+6SC9Ud61cfKuqfYHFwI42v7Y+BnU= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(346002)(39860400002)(366004)(376002)(396003)(136003)(451199015)(478600001)(38100700002)(38350700002)(6486002)(921005)(54906003)(1076003)(316002)(6666004)(4326008)(8936002)(186003)(52116002)(6506007)(26005)(83380400001)(41300700001)(86362001)(66946007)(2906002)(6512007)(8676002)(66476007)(66556008)(2616005)(7416002)(5660300002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: GSmeVoz7m9DDkPuXii8hNuPIb+dNfQtLKU6WrTOjnmB9XtjXqwUULWHoFJzvzT8vzwunPioeBTx9CaGjFowYdtou6DTYGU462iWMI+XvsJQOGzrKuth2HR3fBtiOaDNbJvtDFm+vdbVHlqyoltPKzpUon7/ye/4S4U7kMdVpPHCSTBZgLkAn/Q79qYSySf13V2a0TS8QlvmtFggfUgVbJJv5inU//OQ6fGnUg5IHSOitLPIYgbmd4lYh1Kyl5xmOCc3Aqf3/puIcOsj6jjY8FpHXT8efmJ+hyvL8QrVPrmrdScJawXKg6s5xWy82Bjf+xGzsfLzpAmBe7CzujfgndqeZ+ZrZ7KZFCzzobheoFL5RtJ+DmcQGR820B6S16jyFzi0kYfqy/xdjd/2xhtDgkrkWaKz5770QgmskbW3jvtDXRwQPay/8KrksqY60Qg/XZbvHH7yFfq67AourIIch5z2784yEItFhGaIckMAw1apCweBblmbFKxdotGZl0gMb3xb4u9XbKfmsy10CD1hFP6XZ6kjVPkJuFpje2VgZgjz/zt7R0c8rGqj8jIardOYaErCIXPGr/SWRiCGgBymrF4IBgelpag206vsGoCfl45Wsc0WWuqmMxjY9GNEBF5FvCBnH0Dif+uwSMxExoRXu8VhK7AOoev+4v6/TrhlMS9cVIEN7IuJ4+uyI6jriev08tVOdjEaXtJrlO7a2jbAWuS/SVJ6HHoJVN3JzkCcA4xeY6A/fZTXtAIIpdjLuosMfedGuvOpRHNAvD86WY0+taenNIFrotQnBs3ljOUSQo+7oFsMNLuu7PxjZ0x0sF36EEJ5fCzohcvtjvy1C1TqnuD0DG8M1HEprVO4fv0Uz+31eRr/lHM1ddRWRXyqve6PVxrVyxZbTsk727GIsgulci85VZWY8+IcUpwoL7lkG67HqzSVokI0gJeT2EztafHscO/rpxif3ogqrpI/NzihCunVSRXnG8T4X5yVc6wz1lyfUT1MAUmEJ1BrLodkMqEzH8NByJ84CvYzD9QB4Cm2uaUsv46C5I3QyTjl0V5ehc0YjaOTpPD0qSEy/G/F/pQCTG8Ori6+H3lAWF+cS1lbqNvWqerMvjt2lXcXft6eGojwEwa8FuLGW8n0QyRdU1RLbhMj3i/Vzac5VsH4LhsITR6M3qMe1rKCo1FNnCFkCMA9btl161UymF4NxH3kF0ys2x/HtULqwwDo5e5KBzNQbdKJja/dCJqwvhkj/CnopX38NGJ7+xFkoP6ZwGpvbVtvT4FPusb1VFnLp4LJ+TLUNBpTlexX7njj4K9LsnuJG9k5iPooJxQ79FEOQBBPKWI0YKtTpMUwaNviQ4GOP8CgjVqWr1EEKrsclEpym+LtRIuVo8ZBqeJEfci+pTk/Qw8MdCIIblHXeTxYmdvIakuZfSN49OZu9Tk2yEFwv7Ij2vqZ/zMghq8dmV52dOR32RRtvMvf14zyohdmlrku7+Tto8xD12RgMG2qz0nwu5rTnWT81S3PavCQXzfg0QdP0QtbsttZeZ3lrtpJwEm6a6IUyhovpuf4dbzdqFA7adqOIF7YrunkDW4z4oqYEQOq/v2SL X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2b2d0535-d001-4b5a-1477-08dab8c9e73c X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Oct 2022 09:50:53.6570 (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: FPuAVRKBRG56i/n2lP1aP1gDaGzyX2w62Bdlry+Ha1KX0UJkdZAXbxhx5kU3hRnkeE2bO47xVztjOZ0HDuH3cA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8853 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org From: Peng Fan The anatop base is not unmapped during error handling path, fix it. Fixes: 24defbe194b6 ("clk: imx: add i.MX93 clk") Reported-by: Dan Carpenter Signed-off-by: Peng Fan Reviewed-by: Abel Vesa --- drivers/clk/imx/clk-imx93.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers/clk/imx/clk-imx93.c b/drivers/clk/imx/clk-imx93.c index 99cff1fd108b..9ef3fcbdd951 100644 --- a/drivers/clk/imx/clk-imx93.c +++ b/drivers/clk/imx/clk-imx93.c @@ -258,7 +258,7 @@ static int imx93_clocks_probe(struct platform_device *pdev) struct device_node *np = dev->of_node; const struct imx93_clk_root *root; const struct imx93_clk_ccgr *ccgr; - void __iomem *base = NULL; + void __iomem *base, *anatop_base; int i, ret; clk_hw_data = kzalloc(struct_size(clk_hw_data, hws, @@ -285,20 +285,22 @@ static int imx93_clocks_probe(struct platform_device *pdev) "sys_pll_pfd2", 1, 2); np = of_find_compatible_node(NULL, NULL, "fsl,imx93-anatop"); - base = of_iomap(np, 0); + anatop_base = of_iomap(np, 0); of_node_put(np); - if (WARN_ON(!base)) + if (WARN_ON(!anatop_base)) return -ENOMEM; - clks[IMX93_CLK_AUDIO_PLL] = imx_clk_fracn_gppll("audio_pll", "osc_24m", base + 0x1200, + clks[IMX93_CLK_AUDIO_PLL] = imx_clk_fracn_gppll("audio_pll", "osc_24m", anatop_base + 0x1200, &imx_fracn_gppll); - clks[IMX93_CLK_VIDEO_PLL] = imx_clk_fracn_gppll("video_pll", "osc_24m", base + 0x1400, + clks[IMX93_CLK_VIDEO_PLL] = imx_clk_fracn_gppll("video_pll", "osc_24m", anatop_base + 0x1400, &imx_fracn_gppll); np = dev->of_node; base = devm_platform_ioremap_resource(pdev, 0); - if (WARN_ON(IS_ERR(base))) + if (WARN_ON(IS_ERR(base))) { + iounmap(anatop_base); return PTR_ERR(base); + } for (i = 0; i < ARRAY_SIZE(root_array); i++) { root = &root_array[i]; @@ -327,6 +329,7 @@ static int imx93_clocks_probe(struct platform_device *pdev) unregister_hws: imx_unregister_hw_clocks(clks, IMX93_CLK_END); + iounmap(anatop_base); return ret; } From patchwork Fri Oct 28 09:52:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13023331 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4BB11C38A02 for ; Fri, 28 Oct 2022 09:52:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230302AbiJ1Jwx (ORCPT ); Fri, 28 Oct 2022 05:52:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230023AbiJ1JwW (ORCPT ); Fri, 28 Oct 2022 05:52:22 -0400 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2052.outbound.protection.outlook.com [40.107.104.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBF71173FFC; Fri, 28 Oct 2022 02:51:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AJtJcWfBZ5AJA83ykNNKWR0f6tBq2gkXcgmGHGBbgi963K8265FArT9tsl8z4AsYG+Skg7n5q/RsJq6/caas1Ro+pupLHwToFlblKeHmhZOyEd/NHKsgDORZs9QdK7kTmm9W0EGj3BGRkNu0K1ZySjzsWBhq5ddCF8XNTO7RLerLVLCYDvDzlO3EmC01HgaKPZCEnx74tiGZqFBMnSE1n0EoGu5/lVGR8rW0fII/D1vbHIIKGF19TRQ+MCmgN0Kq1e3hMBfzWGV8ohrx8k+CV5I41VuXS4dHIRIHkKmIMhsz2eDOX01KL/CbRgsF7mRALGGPN8WIxeWClVC/QRIOQw== 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=LPeYFNzYxfzSKhDdsuPnk4X+UkX6e60sELc8CFOss3g=; b=INCmTVDDPWPe4/27n/NLlex+6INPQa/R+ToVox0AZ10UHT7o72/Tnf5JIcc2Mm9HG/Mh70ZKY+jzciwVc3NLz+IMCAmbOkDTU24+N6cW0/3WZ26B5v/00NAujI5jVzGj1KGOZHf2qTLy8s0Ds/2M60IdYekWjH+bZeouxSR30V6cbqcIuqoNeAjQztw69l3xyna6KnmA2g9/p6Tal3iEm94hTbCNFMGB4LZYN0xvsDlNx1iCaIHjTcL6LVkF6UgVf7zxOC5o+yEbcIFXVC2UYfl+eD3zNyUWlM/8luvu3Wz84szgcyWEnT68hW4ESjjeV4ZqkPFxsi47aYFB2SPU6g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LPeYFNzYxfzSKhDdsuPnk4X+UkX6e60sELc8CFOss3g=; b=GyPMsMFcfpaPlsMMwVM1MdE45tBEHXwxnBfIFMjYY6drI2z9beZWSBFOPUNMTgiJv1242XcF73NesU44g036CjaaQe6KSUsUJJ0y8vIxwvQcKjQSsR5NHDJ1sEMMlAVniFmXfhL/w2Z6gLyzJGM+3AHDta4mwue5DMW+JpsGyAQ= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by DBBPR04MB7690.eurprd04.prod.outlook.com (2603:10a6:10:200::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.15; Fri, 28 Oct 2022 09:50:58 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::1587:379:da06:2f18]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::1587:379:da06:2f18%5]) with mapi id 15.20.5746.028; Fri, 28 Oct 2022 09:50:58 +0000 From: "Peng Fan (OSS)" To: abelvesa@kernel.org, abel.vesa@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: linux-imx@nxp.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Peng Fan , Ye Li Subject: [PATCH 2/6] clk: imx93: correct enet clock Date: Fri, 28 Oct 2022 17:52:07 +0800 Message-Id: <20221028095211.2598312-3-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20221028095211.2598312-1-peng.fan@oss.nxp.com> References: <20221028095211.2598312-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SI2PR02CA0050.apcprd02.prod.outlook.com (2603:1096:4:196::11) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|DBBPR04MB7690:EE_ X-MS-Office365-Filtering-Correlation-Id: 41fd7a23-93db-4541-310d-08dab8c9ea39 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jjFJnJweTFpYhFF70w8KtOGetklsvYTvwE1nyBQUGi8BHaj5/3AD029m7sjZ5ZvZNhR6zId564TXexll2GGH3WrNbrStpmbvmes3FCTomSLDWqZ1go7+OkaXSIKAFe4biRh+Wc6MDIhFVxTQ7GUwjuK9fDCNk4gSNmpsGMW0rjB3etKLGNEpIXlgEdE5ucgUWVoxvIRZB1AjT7Pvrxp0crZfug25fUmEPHS4LeiHjcLlyAJvgfpYVaPFb/Pd9ek5SSPj/fP+IONx6KeaTSn6cHPD9xi3PgooEPhbxKywP2VVrPzYFGwpZfQ/RNjifWUcWWaG0vbxiqZcAKqSnzFodZ4XhONwmYhfx0erQrNwdEyucuOpICw3UPNDfTW0bJhLM83ZVb1wGXY++AV0H0BKLbcihL/h+vuBLj9j7EjkDeU9QGKxAGHm8uwS5Jf7hrGmtBW/BLpRfPuD20azV3j1wXuRDIHF381cZZRTE/8k3PuXosILfDCTzkbAqePXBm7aZ01Cwq8kibSEae1h5A5vmr5vzjePUr1PwUwTW7aCJ03rsWdDPSt5DDSFjYjoX9oga0PSbquFfbemYHLiQyO6c0DQC36qL69aTIaY6TgpOogrUlK6EzfzLiVoNfR6mQ51zukL59oo8VPURaEIxIcwCJ+617BbFOHnVQ3TKlGmvpEqtSv3h8KpWHzq5Y/QR0jbRZIWhfB7bRTZEuAE+49MCnukClsHywHrsox7Ajsx8r/nAy8kN4xZlVLv53Ios7moowhCtQY+dacXi2gJAZKFKZKepo/6UK+z23b/b7Jf4s4= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(376002)(136003)(346002)(39860400002)(396003)(366004)(451199015)(52116002)(2616005)(6506007)(26005)(6512007)(478600001)(186003)(6666004)(1076003)(83380400001)(8936002)(2906002)(316002)(54906003)(6486002)(7416002)(5660300002)(4326008)(8676002)(66476007)(66556008)(66946007)(41300700001)(86362001)(38100700002)(921005)(38350700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: HGxNq0w9kodCHinFTggXgA1F+Cva55aorr82nH8MQiMZGyJhd3MxnKpt73Xy96Ao77aFGquCzae/HcjqPGhL2q8+VICIN+UATCJt4tx3Wqia8XiKVhuo+Sw48N8YahOWNewc38DLnaPxaCEFeZkTjj+QLK0N+x18BHkvhDArn1NPKma32PF2EYoTklZBGGYfbDj+qOvSXUptIoo4efyc1zE4ATvXNzFRDShVECXr/cJ/IieZif8hFBSAB0VRrOE1ygu9kIPFm6pE73KWnGnkuCqyvZpTjqWsLJMUS09ZTE/egGjGic+crxDV0z5tcV7EpiB/oae9bmkC9+AgXCZ3jRZeMB38eTMYZc6xUEFDpt202f+37HstEY797XTgLgl4EoGZkx+uO9+97mWb5QQFR7rrBCmeTNBUI//9dUdGWqEYNbk5jgnN5BJ80uLS+G4CoB1Y1lCEWsWZn9ZOigqCZzjTHhw/rN1Mq75K5LRyt1oCVXEAAjg858mAWPXDVAvk+PM5wBnxAXwD6eVbMFfihW3BevzxjMFBH2RtK5uV7//FVgfU4T017wQrfbT0yfRmGpd9YkvEBZrZOHVL/ykMA6tUJPhevjp44mMstysQFxPfXYpAewJM0E8HBTluhfUZj9zYCcpxmw/zSRuG3xDt0u0CJ61KXL0d/v/8/5IMIbzppGXgW+sV/fNUV3+TM40wH3fIEdHgt0aX3HBll3kTpQBcys0eozREXUtufxTTeU3l8Cna8V+AK5ggXAQXtiDoDmKPT4D8ILXwNsMdYEoF4AtM/8EiaI52b+0XslCb9l3KzM8dGxHwuuDVgB7YyGpuji+F0hjfM4gLUovgf0pN08HaDfRAouL2yhdgSi9Y9SL4zPxlicBxJunRNP/7eRn/sNqNDRP4qZHEgQjTYmtho3jDEYqWPha2ONILLyz0EPH2NcoF/+qhJSRBbidIsg90MCFsu83WJxMDjR8GnuyFafpv125AEAwAkFX8g/UajoPp1WLVHGsyUHIpMGYlF3hzdtWei8IwXyG7OEb/fTyZGUN/RX3uuQyhwDxy3UxgGwqiYJFj2LflXfCKjx/TX4GRKGSS/RxBAPND555bHlT4GaH8ejw7UZbK7RlxYVzCkD/Iu7MWTRRG4q9mDZKZRidaP6oXdVJmz63TWbhrdsIophbUxkQv2PTb+yYghnRax7XrZSdr/NXNNntui0LPxRID5Gc4pMEeL8b7XNcFST9nx4Bx9lSmVZiLj0q27i7dLysT3WUcdPlosMNpDybNnV1KWwFtIm8eBGZBKGiltgOlMsZCzRYG71c+2iA+Mkjgc9hbrpFfhTDW9FNFmUWY56r/mGjEkh5Q+LjI5Bnl//1s/3uYL9sKvWcXMCw2N6h9QbcRhna2vM7wIb5VRbuyFmWYu+Vans60ImzG46Ecu1Vb1xPviNbyuZ7jA6ozwHa1uplvigIUhtGrsX/CsRA9NqZc8YNojqfNWtkhUY2GUwj+osiPehwCL/nsE1wNGfF73SfyO8Ccm0eo1NeqBogLyPssA0mTtVuF+MAP0vEiXAY4s6kTlxo70soGjoTJgvQvDin6YCRidTp0CHCTftNqn4ui X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 41fd7a23-93db-4541-310d-08dab8c9ea39 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Oct 2022 09:50:58.7089 (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: 7QrPHFkXclYSplUv+GN22lVl3UulaOx6TJo8j5Zyx7H3IcwVermI+c2sBe1vyqzeHzh7K5zjwvCNFdrWgn3ojg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7690 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org From: Peng Fan Per update Reference Mannual, correct the enet clock parent to wakeup_axi_root. Fixes: 24defbe194b6 ("clk: imx: add i.MX93 clk") Reviewed-by: Ye Li Signed-off-by: Peng Fan Reviewed-by: Abel Vesa --- drivers/clk/imx/clk-imx93.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx93.c b/drivers/clk/imx/clk-imx93.c index 9ef3fcbdd951..7fdc30062a46 100644 --- a/drivers/clk/imx/clk-imx93.c +++ b/drivers/clk/imx/clk-imx93.c @@ -240,7 +240,7 @@ static const struct imx93_clk_ccgr { { IMX93_CLK_AUD_XCVR_GATE, "aud_xcvr", "audio_xcvr_root", 0x9b80, }, { IMX93_CLK_SPDIF_GATE, "spdif", "spdif_root", 0x9c00, }, { IMX93_CLK_HSIO_32K_GATE, "hsio_32k", "osc_32k", 0x9dc0, }, - { IMX93_CLK_ENET1_GATE, "enet1", "enet_root", 0x9e00, }, + { IMX93_CLK_ENET1_GATE, "enet1", "wakeup_axi_root", 0x9e00, }, { IMX93_CLK_ENET_QOS_GATE, "enet_qos", "wakeup_axi_root", 0x9e40, }, { IMX93_CLK_SYS_CNT_GATE, "sys_cnt", "osc_24m", 0x9e80, }, { IMX93_CLK_TSTMR1_GATE, "tstmr1", "bus_aon_root", 0x9ec0, }, From patchwork Fri Oct 28 09:52:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13023332 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7202AFA3744 for ; Fri, 28 Oct 2022 09:52:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230080AbiJ1Jwz (ORCPT ); Fri, 28 Oct 2022 05:52:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229862AbiJ1JwW (ORCPT ); Fri, 28 Oct 2022 05:52:22 -0400 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2072.outbound.protection.outlook.com [40.107.104.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 477C61B4C42; Fri, 28 Oct 2022 02:51:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BTiNvFUs0ZO2I5MyU61xIcQq+tTz9Fm7uGGy1sTfb0sCfda+fmwhRAGo/4UhcIm640qXM7J7V7hTp6bReuxAfWkuBi98PnBoSyN1Jo6AIQ4Ji0WHowS9lAgayq6MwQx29quA0jWnlvV3KKp67TZoU0g2pjOLAgiMzB9mm0R/IqNix/ZxwcTccldjmDryBEM3LoRjjdyyXFzBHsgW+I0/Xvjmcse74wu762B9GqVW5ldfd87I9P0XTM3b0qHW35rXUAOcAmoz2ARi/VXL9KbNUGVglXa4rm4tsX+dwsITY87AZqi22sDAnaeavExwypGbqi04Mi8bY++FvWWP2XYO+g== 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=JBupbEqng/SLogKyNbwJACyshilZfvz645synm/8LQc=; b=RWJKDOJ45OekQmTQKDnOstwDSZJcCz0bMyTGruGHNtnn7PLtfC5sTPVe1guQvYB62fCuIWy2a8cOq+dXam5N4G+Dmrpb8ODXA1i1uBEeQNfe/T0nx57aOH+hLawd3101nf/KVc1PcCWCFcLwMoF4FiAIq+EvuZSnsBqLUzENZEtD6Z1JIxTXZA7EnTHuwxI/CsJ1V9FL6wcGtrFox+OOxAb55zmlJbz2Go2ubUs/Bn6Dxkpr6j7yluvXxCpMUX1QpE9h47BZFOb0l8k3EYH5xODksbzCim5KotChqWxxFIq4Zf2yZwj2YyE+fS7+nFCP20BH73BO1//ddCqPOv8wgg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JBupbEqng/SLogKyNbwJACyshilZfvz645synm/8LQc=; b=hFmhd/89nwp8+ulH6may/8g/SwYEYWSZrOuwalUF2xF09r7DqpkxI7MYbb4c8gSiwFkeesZHJV9MjHr7iwCQGPJjnco2lWpKnBptzkZ95IcTbLU4gKUrZNUj9Xoyta89Gsf217h7ShwXb9LYUnaSIlGD9HgrVMfsDpQB3eu49eg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by DBBPR04MB7690.eurprd04.prod.outlook.com (2603:10a6:10:200::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.15; Fri, 28 Oct 2022 09:51:03 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::1587:379:da06:2f18]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::1587:379:da06:2f18%5]) with mapi id 15.20.5746.028; Fri, 28 Oct 2022 09:51:03 +0000 From: "Peng Fan (OSS)" To: abelvesa@kernel.org, abel.vesa@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: linux-imx@nxp.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Peng Fan , Jacky Bai Subject: [PATCH 3/6] dt-bindings: clock: imx93: drop TPM1/3 LPIT1/2 entry Date: Fri, 28 Oct 2022 17:52:08 +0800 Message-Id: <20221028095211.2598312-4-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20221028095211.2598312-1-peng.fan@oss.nxp.com> References: <20221028095211.2598312-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SI2PR02CA0050.apcprd02.prod.outlook.com (2603:1096:4:196::11) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|DBBPR04MB7690:EE_ X-MS-Office365-Filtering-Correlation-Id: 92923f7e-1da5-4c8d-7d37-08dab8c9ed40 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YwLytlnZaZ1kVKc2FmNVw/6TRz7mRfPdW1IoQ0MeMaoFIRJXWYgnpMDRAQkQqTDaHq3LvXZMFWjnwuMB7+wrHuOTzadQYmdUsvqbd5SQc/xGTOWsTEUHxWixTPzPtJ8hDRVBMkgP63ibt2dHfYqWO+Dz9YvqmgeNyp1mSbUAbh12WR3Q3kgaqDzIYgwnqW35n/LIOAECDD9kNKTkocTZUQR5YCTGFD41RnQfo4HLKNYiEl46otcmpqk6SW/6WVWdiTOasxTAZ9iTt7wL/H7SRColsjCdoo0fu6ixvNj7pHgjRkUzqnZ7GBoOTVarT3Yc64IZPAtt5CLfwrWmincmiSn4n6/O+SB1RyQmhFrCLimg2rll3JrS+8wP+onwTdZP7D0jaeGLi2dve4D88K9NVQAdyQS1IbluHFzViJZe1XZGrOVfZ4ciBas35otln3BXe7mPbSt1IL1QzH+LwcfNbEvu4SKWPn2lRk3y3WaRvRQZca6sAs2uHyma82fWFMYyGtEyot0Ogo+k5mN2VpfhSGftLHHhWELtE6POqWzKMu7BCI3RGV0ClIFX4MMBPcDMc0ImRR+IqYH1bKzM62gxy/6AXvwGVq1WcxM9UpmAZ0Ilb1G1nzsJzpLGPI8parBgWATwOGou/5+cIdTLPU9hRhuwl2YDbJjlGbH+9XpHV3X2bAarJ4gFAdtT1cnXqDGrGYAXZ0xC+xrvJgZcJHu8DH8kJWZUQMIhczMXujcoN/ly+yW/8N90bsSl7abhZQb1T2s2dLtUIfjgN9Msz7cnWGEofUekw9NnpXKq0bxtOoA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(376002)(136003)(346002)(39860400002)(396003)(366004)(451199015)(52116002)(2616005)(6506007)(26005)(6512007)(478600001)(186003)(1076003)(83380400001)(8936002)(2906002)(316002)(54906003)(6486002)(7416002)(5660300002)(4326008)(8676002)(66476007)(66556008)(66946007)(41300700001)(86362001)(38100700002)(921005)(38350700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: jqaQMaNtsFAnD9LfZ4MhhB8ALBgeXTwOnqbNZUItdEhKKoBBEU/y2/NdqY3JPF0RjVqwIH7Urg/kf9QeJpq0tVMJwxK6eUTS6w+DtdI7BezwJlEW2WeDUx6it4Th9ftrxFsBb+2BCDc2TDz5YKYySmBdgMk4JY+6J0lAeQHCWau8F3gcb8ZfFaikDzjp/RvZYGk/pfFiX6ofMLQRrkOX9X928wBvJBy9+YOZj37nn0UcTodCkTcMGF16D02QThl0BwyXBx1y08G9PewD4sbBKS1g/dztA2pC6mje9mHxBp1bKhVCRKFDVcMrEmMUWDh/H0rlieibt6GKsJ9AIyykqqtP87eP1FEy2qsp/LP3Snc4VTSJq1qI9eAyN59/ZyOrl2oLoHsCs6rbS4QBDXNwEOJCCXxdwGgLHk4BOHeP3JmcgsON3RSSeidM6w28391RNFRssJ5fj8s9jVLjwBIk8YY5ZskgTOkA13pNYO3CNyuxCA8i5G8HPaFnGfEnrFJ+JsVRqHjXay/+UUS6AZ0ut/DvvK9cVXYsAtBE/B+Zi/kjUui7OdfN4PdZXXpRelDjUOsfep7mp4ATP6ToXamh5Sqkce8S9J998Sh2LH9hijPX0i9QnJh4jE3gJXRRFMAOXEJW0IXjmM6L1pC/QbIh6090fW/4r9FajVCSfzWtyvO3YD2tXRjSPZU2n/jNq884qnyGI49CLLi4j3Z6eAUQz3TQlXd7Cm5rgJvtwUx4kM9GcgyO22iDmjFEhFj5OLaqqCYQsk64XG2lKKrBLlfiua3CIukDHt0wLUZMvKuj5aFNaAvMUZq/R86Rqg5OPwvFST3Ba89sQrsFm/112Z8l9qyVGweZfP2BiR779noEHDwnEsOExnDjVWYWMovktG23ziAcmoXU6e01XwgA0SI2oQffO2E74GSma6f8Lv0o0j7M8bwx3utuKQLcslpy50GACYnrDeFMYk2zUHtYs14odCjKjfsICkg6KTs4dp0rej9jDxzfhW1twXj4kFUBx6JBEJAbPk1tjxdvfjvwlj2JF1sTLxEF+5GZzbv/wJBzEGAxmI5iLM8330V3mEamu16ywRFK5N5p0KU6tCdifez0E/MXsuSO6vdYSdUEeC87ihzlx0Z6nX6l8evkGOol5BkphMIJD/X8uMU1Cj8m98s56LXpKlhLnnEYVAo8dUth7tyHwD5UgcEsLA3nyCESBmsHKNVxgksAEkwNZPFd8xp9Jqr2Qdr5BYZpFhCMO1/W4sVsW+ffIu3KjYe7WDu2VeBz+/rYlhY56CDCqlCM0j6tAg7ats4rNxQXOpA/3pry6I3eRiNv8QpL0cwwsX1GFB47EeCPA+X2TqnbRa4LJVRTbnS1gzHPW7nETwBlrVYYotK/tXex1YNPG/7qJSi5aXt+ERmTi8ooQ+W2yGLQyw0FMPNuO5iQFOnpRn52hM9BISOx1+xGT9ZKffyvQpWeStligtVip3pW2MwCkAKL6ZzhViGrKcu1jeOIYnKQ4tfxOAGfMGqVrRwFv2WF1jAy63QtxOOHxZ0YCvZI2E/j8tZGYh3WSmcneRvmP8ytYSPG6bV4Y3QaGJMOqjh1aVI0zdrq X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 92923f7e-1da5-4c8d-7d37-08dab8c9ed40 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Oct 2022 09:51:03.7696 (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: ro/GpttWT9Lqil6MoB2QBbotb3A/Eddu1VvodiIbiJxBkVxocN1XFIj6RXUKIY+dDypqG6bs61TVN1jMuu2Aug== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7690 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org From: Peng Fan Per updated Reference Mannual, the TPM[1,3] LPIT[1,2] root clock entries are reserved, it is because writing the CCM registers does nothing because the TPM[1,3] and LPIT[1,2] IPs source from bus clk, not from the TPM[1,3] LPIT[1,2] entries. And because there is no SW entity is using the entries since adding them, let's drop them. Reviewed-by: Jacky Bai Signed-off-by: Peng Fan Acked-by: Krzysztof Kozlowski Reviewed-by: Abel Vesa --- include/dt-bindings/clock/imx93-clock.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/dt-bindings/clock/imx93-clock.h b/include/dt-bindings/clock/imx93-clock.h index 19bc32788d81..8e02859d8ce2 100644 --- a/include/dt-bindings/clock/imx93-clock.h +++ b/include/dt-bindings/clock/imx93-clock.h @@ -28,13 +28,9 @@ #define IMX93_CLK_M33_SYSTICK 19 #define IMX93_CLK_FLEXIO1 20 #define IMX93_CLK_FLEXIO2 21 -#define IMX93_CLK_LPIT1 22 -#define IMX93_CLK_LPIT2 23 #define IMX93_CLK_LPTMR1 24 #define IMX93_CLK_LPTMR2 25 -#define IMX93_CLK_TPM1 26 #define IMX93_CLK_TPM2 27 -#define IMX93_CLK_TPM3 28 #define IMX93_CLK_TPM4 29 #define IMX93_CLK_TPM5 30 #define IMX93_CLK_TPM6 31 From patchwork Fri Oct 28 09:52:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13023333 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6E50DECAAA1 for ; Fri, 28 Oct 2022 09:53:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230330AbiJ1JxO (ORCPT ); Fri, 28 Oct 2022 05:53:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229909AbiJ1Jw3 (ORCPT ); Fri, 28 Oct 2022 05:52:29 -0400 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2072.outbound.protection.outlook.com [40.107.104.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D3571C7127; Fri, 28 Oct 2022 02:51:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OFjTl6dPgmT64thy1CvEt6Np9YDiNipoTFKv0LU3sU4qMRxkkG6vVUe+CgIaLOMb5oXjbvCPPNNpPULTALIFs7HDKCng8rR4jsYT4f/QAULid1ynr/QGq/8orwETWOQmsTYVw5H6QYe13Fj40tRHj8VqiMAFckzGI9dENck/5oqjbtmmTDhoR31Hje4xl5Zx/9OCU/ihOhteACJwLBJb6fAXt34UI6jZ2FwBqZA1+O3NhFM/jAfabqnW8QQbpyk6jD6/eDc7JVNwLFuJlwDu9ZIoh6MVsVFlfTE48dOdVOBAKtwsxv85mmBj1F29xJcRCThaE9gjpRhaHymsFc4EdA== 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=EIE1Rdy8McrFUlqWR6tNZu974PdiQqqyFo1QeCyMELw=; b=MZvfrYyRuEWArdTK9wnw0xNn0H5NXoWqmbva70b2H77BWjQ+QAhMGJRpnaDS6N4JLw3N4oml79okl+AqbGGxfD95ggnOTB8mQ9rzjE7FKzcmCR+mxAWOP4hUuHo06fzymNnA80cuanvN20xXJ/XARBsrTnbuP0/01iFYZkhmrM1fns9DvHM86xbDKUOUZXYvKg+dM79/st8Ea6ny+7wHk2M/nW3BQZZQ+EeQIjv2n2dngzJAeGfPU/S2jqaQbPC7JsRHgMkeS0T+j/JJXt2K1pbXdham/1K2QxaQ+c4zLS4GU29eFE3bIqh2hVPF0OVnJSz1xo4eUI4XAcTd4lTv3w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EIE1Rdy8McrFUlqWR6tNZu974PdiQqqyFo1QeCyMELw=; b=V0FMH/Jz4Ps8udGmsHWUKfb+rwpJ1QI1jy93WTTrXsMeLZwIzV0+w6xx7qe6ovMo1VlYZytbTCiGEYZxKtTxIxlVsFz3kUfBLxUUBBMRJEKCwstGGXPcPFXOZ91GpWaOh6QR/QbCk0xoL4Q+k0dTS8Q7IPr/IR0Gjkq5KOlmCXg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by DBBPR04MB7690.eurprd04.prod.outlook.com (2603:10a6:10:200::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.15; Fri, 28 Oct 2022 09:51:09 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::1587:379:da06:2f18]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::1587:379:da06:2f18%5]) with mapi id 15.20.5746.028; Fri, 28 Oct 2022 09:51:09 +0000 From: "Peng Fan (OSS)" To: abelvesa@kernel.org, abel.vesa@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: linux-imx@nxp.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Peng Fan , Jacky Bai Subject: [PATCH 4/6] clk: imx93: drop tpm1/3, lpit1/2 clk Date: Fri, 28 Oct 2022 17:52:09 +0800 Message-Id: <20221028095211.2598312-5-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20221028095211.2598312-1-peng.fan@oss.nxp.com> References: <20221028095211.2598312-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SI2PR02CA0050.apcprd02.prod.outlook.com (2603:1096:4:196::11) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|DBBPR04MB7690:EE_ X-MS-Office365-Filtering-Correlation-Id: c28ee965-0dd5-4dbb-4320-08dab8c9f080 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: t4GtsHQbyRJ/X6si/JjDi1/edzpkFPgxQnIvAa2obNATa5zr8O9begDHO/ewNZ0HwQR5cXO5Ot4brepRgVKKoBPrKTjJNRIAFjZXlD9QqXJPpMSZ8ZYOzXSQQD8cIAp9OBt9nz1wKq7V8dkUiBPTEtzFICZgyRi3XMjnLGK8QNyWLQJsBzdhpob9r19Bf8FZCgTzkTAuGj82vj/GnwZfhTIXVkW9mNZ/Ec4meKR7Wa3ad3/zv2GMJNs8/R5vFO9mNwr84kfZ6yNHgGq6PWzoury/voqXEKVWJd0QlM6vXDpw5kbbPYgh1dQLy5J1mZQ/WD6cduEl19ekKKCJitS1LBWRASnaMLkYulcNR4yLsr/kZysqLQlMjAmbzdSHM8IoTKvQUHmZQ19j+/k0D2x+9qi5fqDENlnMzfUfTck7TXhVpfuvxjj3kUYCOYbmpICBanpLmrXumcvlBMSXgV9nItXT5JXgnLgh231YLiJm/ttBVtKjVNuna0dQy/IZAuQje4p4+yJtVbgpNw+/akJbpDPWTt8BhaMuPkGd22ccpiop0pJs675wpEia5z8s2xQK6ac+0stceO8vBGgixp6Ok1DeDSc9Ovys4XqG8F8aPad1oqnEpCZhSNPVY15KImxErwpjePRqpqn1yq2vmSIpc0IwEZbKLhRlfPOAr6XK8KjD/vIbI+UW1UmonfnnTKUSA9NO29BLnbjXUpv7mPu5GYF0Y8Fw2fJxpPHVRBZ6wNN2B8mUFhNm2XPZK5jelAl7gboYgrIOIA5EJvY3UogHKNbqlzBNncl/jVx4iZVORjY= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(376002)(136003)(346002)(39860400002)(396003)(366004)(451199015)(52116002)(2616005)(6506007)(26005)(6512007)(478600001)(186003)(1076003)(83380400001)(8936002)(2906002)(316002)(54906003)(6486002)(7416002)(5660300002)(4326008)(8676002)(66476007)(66556008)(66946007)(41300700001)(86362001)(38100700002)(921005)(38350700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ISsvs1nUcCV/3zpyAjCPWGaGQtaZCFuP7qCe/lgMBJ3uXx8U027Y7qbMYwNC382ay/2Wae2nA832t4MUNuSLlQlXJoFDOj7O/Hhwgb4Rnuh7lnt1D0KrR3I9canklouMqe1XH6JXNyqwtTIGlDH4uOGQRLWrZl6A9z0vcz3DzW1JopOivrMVDoblCoQRQ0I21m/VtcQLzDtk0BS66t6XqBMia39GMIF2RZPvnMoUUS4/aGB/W8xuplolsKT2z19B8/PfMmGiGSwWeKfm3XeXlZx1IsCxcybplkgugYkjM8VGjtesd1iqFG5QiJp5wEaArFpAglOIcYQRsAM2vQ641Q8rglDX9ZR4YLc65pDUFkzVCplxXgVIPjuDxX97a4U7Hz9E2UoH1XY3cS2FOtGfMxaR8yMSlwO2SvifHnX4qZqOsmBNfjGOPvIEYngPedBl7njIsfSHHoCMMeCL3UcSOTx3pNSUg1y5SAC5BYCdQWpD8ly2mHKSgLndHXNTkAWnq0EWIwOReSEdzYTzlhXuWmnE+uDc3bqKEEZj8/OheGv1FniIKh34eGwVMmqvbUuM5p1L4QFbT00cFf9SycCH2gk54WCqazYMGYM7C3tfM9EwwC0WEOjA8ZTbtV9gM3i8Goteh4MYUKEOtN8vrEf9JH69ePQx2FWTe8RsXEZNBaAgbmEClXjlO5dd0iT7PCWYkMs2QbvL+GjMTVmgI0g23cFosVCJ3awdBNTxcE0ulMy9IuhnvmO7OhiwVb5gi4wfD/MhXxNJ+r1Q8dBzlpF86hnoBNkKnXrK1WBa8pzPFgC8DkFrGm9svpyiAMERu7QYzisSpyrJPCtbUhKqikDFhPMfd89Pdw+xztI2cODCDmGZ+3Vv1Oi9NAv9dcNcrDDXrnhpj0CBNQwTS1Cwh4GZNPouAKNgeHrMk26WuS65PFsoJD/wS2IsUysQWxNCbS0rEyAk8mOm+iUrf4DWvdHio0k6My8SKSPFFzJpab7HHeuxZIl5Gm4L6iFuSdagVudTF1SgKw7G0QIDpoxAUARv0SdSOXK+SDWZoGKSauI5yjFFlW0obdiArOEXdDrwBBvSxjwn20ttVgflRsV5cweGgCoSLP6/ol/piiyuWMDg4gMyeL2gIx4iP8wZDoBDUhK3WJRuyyHQWom6J5edDCWO97RL3+2pHIbXZKA3CIwkQFaznGvZKN0pSXxSAy9/g+/V8dM5MmsLSrOgzIftiDeJFM0chaw0YmUoBxxffGKU/jqt8ZVMUSAEpqKpuWM070HPLQ4913NqL9VIr3OzEgym+G6DMA3utUSFnRkGjyE8eZPWzEBD4I4bxk+uuOWYM0Jxui7fI1sxhgZC8Yi7pTpKVQVsNO34kbeFwIPZvjJy4F5HNoQrChNcSJQLLe2/3hx02hUiY6LEJjVei+5gX6biMdiwUIRI+7rdmYKvy4S1onPbq1ooQ/spjA1NVNGss7zMWRagg7P2fZ9MOyEceu+yp+XM8grbBJE56zg2nN473w42k5nQnMmE4oD+hJUPeH/NAmUssBYCgr6A2jIgEJupceZlsCBoDIk6Xlavs0vxUGVHdjKvtWONUeNY1t7Ta02v X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c28ee965-0dd5-4dbb-4320-08dab8c9f080 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Oct 2022 09:51:09.1577 (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: KoK/Xl7RAyJlcjYOWVM48kXqzNOhXzEAZEDx/CMgqtfV9izykXa3x+qZiFH8fSr7EiQyWxR8D5bva50lBmpNSg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7690 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org From: Peng Fan Per Reference Mannual System Clocks Table, LPIT1 and TPM1 sources from bus_aon_root LPIT2 and TPM3 sources from bus_wakeup_root So update driver to reflect that. Reviewed-by: Jacky Bai Signed-off-by: Peng Fan Reviewed-by: Abel Vesa --- drivers/clk/imx/clk-imx93.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/clk/imx/clk-imx93.c b/drivers/clk/imx/clk-imx93.c index 7fdc30062a46..422ad3c89845 100644 --- a/drivers/clk/imx/clk-imx93.c +++ b/drivers/clk/imx/clk-imx93.c @@ -64,13 +64,9 @@ static const struct imx93_clk_root { { IMX93_CLK_M33_SYSTICK, "m33_systick_root", 0x0480, LOW_SPEED_IO_SEL, }, { IMX93_CLK_FLEXIO1, "flexio1_root", 0x0500, LOW_SPEED_IO_SEL, }, { IMX93_CLK_FLEXIO2, "flexio2_root", 0x0580, LOW_SPEED_IO_SEL, }, - { IMX93_CLK_LPIT1, "lpit1_root", 0x0600, LOW_SPEED_IO_SEL, }, - { IMX93_CLK_LPIT2, "lpit2_root", 0x0680, LOW_SPEED_IO_SEL, }, { IMX93_CLK_LPTMR1, "lptmr1_root", 0x0700, LOW_SPEED_IO_SEL, }, { IMX93_CLK_LPTMR2, "lptmr2_root", 0x0780, LOW_SPEED_IO_SEL, }, - { IMX93_CLK_TPM1, "tpm1_root", 0x0800, TPM_SEL, }, { IMX93_CLK_TPM2, "tpm2_root", 0x0880, TPM_SEL, }, - { IMX93_CLK_TPM3, "tpm3_root", 0x0900, TPM_SEL, }, { IMX93_CLK_TPM4, "tpm4_root", 0x0980, TPM_SEL, }, { IMX93_CLK_TPM5, "tpm5_root", 0x0a00, TPM_SEL, }, { IMX93_CLK_TPM6, "tpm6_root", 0x0a80, TPM_SEL, }, @@ -177,13 +173,13 @@ static const struct imx93_clk_ccgr { { IMX93_CLK_GPIO4_GATE, "gpio4", "bus_wakeup_root", 0x8940, }, { IMX93_CLK_FLEXIO1_GATE, "flexio1", "flexio1_root", 0x8980, }, { IMX93_CLK_FLEXIO2_GATE, "flexio2", "flexio2_root", 0x89c0, }, - { IMX93_CLK_LPIT1_GATE, "lpit1", "lpit1_root", 0x8a00, }, - { IMX93_CLK_LPIT2_GATE, "lpit2", "lpit2_root", 0x8a40, }, + { IMX93_CLK_LPIT1_GATE, "lpit1", "bus_aon_root", 0x8a00, }, + { IMX93_CLK_LPIT2_GATE, "lpit2", "bus_wakeup_root", 0x8a40, }, { IMX93_CLK_LPTMR1_GATE, "lptmr1", "lptmr1_root", 0x8a80, }, { IMX93_CLK_LPTMR2_GATE, "lptmr2", "lptmr2_root", 0x8ac0, }, - { IMX93_CLK_TPM1_GATE, "tpm1", "tpm1_root", 0x8b00, }, + { IMX93_CLK_TPM1_GATE, "tpm1", "bus_aon_root", 0x8b00, }, { IMX93_CLK_TPM2_GATE, "tpm2", "tpm2_root", 0x8b40, }, - { IMX93_CLK_TPM3_GATE, "tpm3", "tpm3_root", 0x8b80, }, + { IMX93_CLK_TPM3_GATE, "tpm3", "bus_wakeup_root", 0x8b80, }, { IMX93_CLK_TPM4_GATE, "tpm4", "tpm4_root", 0x8bc0, }, { IMX93_CLK_TPM5_GATE, "tpm5", "tpm5_root", 0x8c00, }, { IMX93_CLK_TPM6_GATE, "tpm6", "tpm6_root", 0x8c40, }, From patchwork Fri Oct 28 09:52:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13023334 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 73206FA3744 for ; Fri, 28 Oct 2022 09:53:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230342AbiJ1JxR (ORCPT ); Fri, 28 Oct 2022 05:53:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230096AbiJ1Jwb (ORCPT ); Fri, 28 Oct 2022 05:52:31 -0400 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2063.outbound.protection.outlook.com [40.107.104.63]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92E2D1C882E; Fri, 28 Oct 2022 02:51:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FCtKpf0EzwfIJml8xvGF3XymNJ45JPtuxecPeBfPzoDWnwLNfQjkiZjTulGs94C3rebSRXbA7/Y/YNVzyMu5I3jqH00SuC0yPLF+NLLdWrgQPeHfxcNIKoFTm1of6S0fFY6NkN+miA7MDhCnFUMzt1pT0/7Ygx41FnTG5Miwg8jDpEpgbNnnZI9LsJ1/LaYlmhU8cHfDO1fxPf5JIBKoVamWwhOD+vp7db45jnVHXSnHzL4hog/UOR4ZWFTPERjaY46632jXBzBC63v+nPDOaPuUsiPAiwfV1bqOwQ3tvwnw+C/tq9VGd5QYRIG0hCMXtovVRwoQAK10ftmvwJMKHw== 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=iD4s9lO6PjPq3IAEopQSnp5Qd8A3LSv3nNa0xqxwxv4=; b=XGx2HkjNQ65Ca6v+sbRqRGvmFIqe8hwPqpOUVTm3FrqcdwpFzhuhocIVKl9f+pjxKk/foglu1WHei2594hhqt1XHIcyrvwXlN7rLCoiJsHTHj9JoiICA9jePzPlwJQaSStXYK3iwJvPrq9LEbr94afTR5lDzTUnXkjpiZomz4lYadWnGJtK+DQXiq7M6SNeN0e86adrp3oKyTielb06ZD+N7FVXQFBl9Ha62fXnlDUfWszY97MR1f3jtGiR9aC7o9Iw+ETjrzIFpar8qFEWT7N1kQG4bWIfxgSaVw8huIhy1695Dr2cVPqm85Jmg9a6OURtTgq6cWCPKMNzS2Lwc9w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iD4s9lO6PjPq3IAEopQSnp5Qd8A3LSv3nNa0xqxwxv4=; b=hyAk2SVc8j7roDEhSWW6g4DMWRSjtnrOGtxczXS86d/HYTL0ZOY4uOQVBxvcIh1LilFeQLTHBZVBBpMagbjOyajkzgzqMxHawe9jfarlD3GR76ZRswqMclYTcuoGQi607uV5/p9Oqis0gOcIxpre19ThNSm8R4rAhmSSB31HhGA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by DBBPR04MB7690.eurprd04.prod.outlook.com (2603:10a6:10:200::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.15; Fri, 28 Oct 2022 09:51:14 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::1587:379:da06:2f18]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::1587:379:da06:2f18%5]) with mapi id 15.20.5746.028; Fri, 28 Oct 2022 09:51:14 +0000 From: "Peng Fan (OSS)" To: abelvesa@kernel.org, abel.vesa@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: linux-imx@nxp.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Jacky Bai , Peng Fan Subject: [PATCH 5/6] clk: imx: keep hsio bus clock always on Date: Fri, 28 Oct 2022 17:52:10 +0800 Message-Id: <20221028095211.2598312-6-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20221028095211.2598312-1-peng.fan@oss.nxp.com> References: <20221028095211.2598312-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SI2PR02CA0050.apcprd02.prod.outlook.com (2603:1096:4:196::11) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|DBBPR04MB7690:EE_ X-MS-Office365-Filtering-Correlation-Id: 97ac7896-26cb-4756-6770-08dab8c9f378 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: h3EUUtXhVFq9XsnX8gak5reFSzk7pHOdAwW0YN2NRqAWM2V7qz8JzC99YVGN6nm1nT0HFQDckWo+IjITXxCj+PwKPP0+4G8t96uBgVJwkHH+4Pg413/otB+LL1fRLH8IbHo0L6ISFSBqrHxvk1hwJSGtu1h9oUgrMIj+0I36fsYVWjDdTMvOEQWH5eHO1eeAVvWEEC49+i56ab55zwoQ9O9SvlASEeUQztMWy8dmANPy6gXssxRT+FczgzNLdKkJR1+14B07Ocx3zsJNQlQyDvoMFEQzQwt5Ojqc+Vk5TUUJql+LmEPBU+61xkU6iF2SlRg2+TuA6j9CsGYCf0VWgOeGbbO6rn39bUeLV/lYE63RiZFQk4EKqYBc1Y/m8kgjfPlpE1N1d8iluqJc2dV2tDtfJ8VL5sJ967Djo2FB7d3bGSDyfQhsveG8RhKG6FYHyujeFDiZCTHst9HSWav5hpIOwt58JziUWURVGWmz+F/jCd7/Mb3Y46AGtdFt2QWMvKSHrV3YByMKUB/1qs8UPskhSbjm4GXQCYPv2XVZjCtKZBoM7dmTP1MMKz4sMHvpFPUoEPgYsne6RMOFNAbHDEOTH5c6aJsSEcJ+JJch7ylwMAFs3Njw3QCYWW1lTrBp9YIsN8s0VmGDiiBjCa3+EW2SrKioUbA1YqTmvIudKPUycEV06uIZJac62CHoi1c0PYsQo6ZPNQGm0UWEaeOJFEbpANO1rR2N9yKlPAYnVJnfJm+HJrHcMzDK98wR0FMx2jALTsYqufmqtHe8791+iso6qUMVmH3sqIfnXTQvpLY= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(376002)(136003)(346002)(39860400002)(396003)(366004)(451199015)(52116002)(2616005)(6506007)(26005)(6512007)(478600001)(186003)(6666004)(1076003)(83380400001)(8936002)(2906002)(316002)(54906003)(6486002)(7416002)(5660300002)(4326008)(8676002)(66476007)(66556008)(66946007)(41300700001)(86362001)(38100700002)(921005)(38350700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: BZ9fp6cVISeDjnWHnCxcmkpZN0+CAE05SYuqE8YYOEEZL9pHOf0eDA1icaviIFauvPE8YeuJ4suK1oe4/HiXT8/Rk6FoCJTDwwOt9iQ9/1aJZLJjwOn/5Y0oTwvpkMNCgBDCIC5Vpxe68VkuUCRLqceuuEd0winyxxPSOidwXGURzEUpQwe3f10knzSIhM16mRF7NDsC8dyOTmLE6qZtGTMZLUUMhdGqY4gVYhbAjt9oTm28gQzqcsinmXPxr6zGNflTpttRmDQ0ClVw9MP9HDqFq4/mEcaWA6/q2bZOlOsK5kJMR48NE3ZRei2lXTPIulYX7Le4TjXSI7nbJlr7Cg4QI7EXT70n9Rpgvat1eQGyjbVdCwt/VrgKiB7wxB9d8n8/2sY86WmR+1ZeqSHX4WmiM+pLuxSSns7/5aGkz3C0WzmVM6tRAwB4weL5GKIoypu/ePbJ0ORnuvvus3ODH6n2sNL2FAx969vTdlrRZ08cceJ3oSdLmN0RUS4ySWRj4Kl2R9F+EfZlF2KgEkunovXPAV7hqhFT0pgQe+qKjvA4brDaiGhOCLEHJpzlIaQlH81QFOIXw9R8/wYGLwThXqcaS08v93luj8SGURvb9oI1DEVUMucf5/yFfW6zFHXf5WADoJqSRkFzKEOU05Ycw3JQiA5NcqH0Lv/UMTDuwEp39CMmbJFpxxGPzD3DwJGGurXIKMyERX+lPS80rzkUNU2onGy+86UnCXW4G5BGVZugytWCL6Stk5/z70egXiwsPVeILrO8AdCEaxn1S/LhTw7xQxhcM5gkx1veQoQDUBsI4xQeRJlfeYmAhweMt85s0/Ld/N+wVRLUSq8O+hZi02VOQVSe60wLdORi3ijmXo6lZenQkw+oDR+B1hejhd9MYOw2tXfpVdX4aEDEjvyCWPzMpIzm+xEAVHL7a8qUHgfZZVtJj7/PfzonDc9ap7sfjBKZQ7MSXRflC1WGiGFNhJyDPcMtBbkSeF1CeR8bP1FRDpCu4/5ZaN2578qETnKoKvuk0FHbx3SUcSA3mwN+UUO5+/k+5bxwob/qYip9iv0mSN4Am7JiAO6lLOfC+WxabegnaD8GQ9EQ/2qJhwyylNlZR6GOOz+1PlIoyXl6Upa9mp12gyu2hsIFUjBXSgvchkqDID66RIRXYoHsJfhISYWVvuRo9plg0tYoJcz5Yz+F/g2SG9G3+Dcq1gX4d5watRlqspcvjP47Qt41E2aS8f28bqiu87I3lz+OO0/DwFKvCLKh0x7kVbVYfzYylwo7RYqT8MITEm5Wwqv97xS1FTDwChQitDZ7nF3B/azVl85w/dywR+xWzGgFK+4EKigruhIRjIiSxIxfCYT/RBC4Gu2mE/FAFWz89P4M6Ze/fOFySRtkjQWL+AJr/8FtHH7nqSYo9svZxvkZ6Da3ly3LfDJPyHjAzkPLMQX+FrQXhurI+pAIyduxxgRYuY40iCfFoiPlqAGOypR/EOkJVU9NraLceDcwC7I3qAHVHhUHUxElGLcBUxQNK1jEPNsbmWEkgcqzgDEjx2CGCWAT76WcGrzHAVZCypIPfj3Gt2oEKgbviAXAaUxeVBinJQPIf2HY X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 97ac7896-26cb-4756-6770-08dab8c9f378 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Oct 2022 09:51:14.0756 (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: l4ed1ov/1quRvsfQO9Z4vlbrgkixRR4C6Dmt2fKQ690nqdLohEyXCOks23Ejt4OfhqgOGqmk93qDQj3M13BiLA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7690 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org From: Jacky Bai During Linux System suspend/resume stress test after System Sleep enabled, system will stuck sometimes. It is because NICMIX is powered down, which HSIOMIX(always on) is not powered down. When NICMIX powering down, HSIOMIX will get a hardware handshake, without HSIO ROOT clk, the handshake will lose. Then after NICMIX power on when system resume, the access to HSIOMIX through NICMIX would be broken. So keep HSIO ROOT always on. Reviewed-by: Peng Fan Signed-off-by: Jacky Bai [Peng Fan] rewrite commit message Signed-off-by: Peng Fan Reviewed-by: Abel Vesa --- drivers/clk/imx/clk-imx93.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx93.c b/drivers/clk/imx/clk-imx93.c index 422ad3c89845..7dace96f36df 100644 --- a/drivers/clk/imx/clk-imx93.c +++ b/drivers/clk/imx/clk-imx93.c @@ -109,7 +109,11 @@ static const struct imx93_clk_root { { IMX93_CLK_CCM_CKO2, "ccm_cko2_root", 0x1d00, CKO2_SEL, }, { IMX93_CLK_CCM_CKO3, "ccm_cko3_root", 0x1d80, CKO1_SEL, }, { IMX93_CLK_CCM_CKO4, "ccm_cko4_root", 0x1e00, CKO2_SEL, }, - { IMX93_CLK_HSIO, "hsio_root", 0x1e80, LOW_SPEED_IO_SEL, }, + /* + * Critical because clk is used for handshake between HSIOMIX and NICMIX when + * NICMIX power down/on during system suspend/resume + */ + { IMX93_CLK_HSIO, "hsio_root", 0x1e80, LOW_SPEED_IO_SEL, CLK_IS_CRITICAL}, { IMX93_CLK_HSIO_USB_TEST_60M, "hsio_usb_test_60m_root", 0x1f00, LOW_SPEED_IO_SEL, }, { IMX93_CLK_HSIO_ACSCAN_80M, "hsio_acscan_80m_root", 0x1f80, LOW_SPEED_IO_SEL, }, { IMX93_CLK_HSIO_ACSCAN_480M, "hsio_acscan_480m_root", 0x2000, MISC_SEL, }, From patchwork Fri Oct 28 09:52:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13023335 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77BAFFA3745 for ; Fri, 28 Oct 2022 09:53:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230127AbiJ1JxU (ORCPT ); Fri, 28 Oct 2022 05:53:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230107AbiJ1Jwd (ORCPT ); Fri, 28 Oct 2022 05:52:33 -0400 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2069.outbound.protection.outlook.com [40.107.104.69]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D0851C8D5C; Fri, 28 Oct 2022 02:51:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=W8PkL5wJ7FHB3KMoQCaP8yT8VA+afnsPoXeA0szeJdCTWq9aC1yHt9CNKvZflD4RD14ZILbNjw3++Z4TT91AQ9/7HVzYDOlvly7P6Z6i6+kZQ821/ugYYrVO+5IvbACnCgoIb31fH//+z8peCzRC5D+VVvjVdgSLXhjLYhY90sVujCdkhCok0Dl6EIMVXJNcUjnHGuC6eirqSjbekia9rm5Xz6GcEYv+L8nTdMBW7kDd6bE8fUObRJqFTVMLsqt2LBJaYKAC5Ct6QGjSkrcX9YslMdkXLrV7QsXN4eCCYMRfi0m99ySR/OH90ZBkgJALTNSmJ3hAWfS75L/u2JoS8g== 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=/8bclElul4B6CENXZljmyYYupBA6dEYdtz1HxiqWmsE=; b=KJagec1GXdFxvqwa4ql/gAX/clscY8T9zUErGv5woLwzef0Tu4Pzo95QlkMWjVo+AWp42izQYNRzRgmbTj6d4+UakvDn5Ac+6zO0EMGbqAgGDeBT5p5ZM5IwuFXY+eLJWF5daAFzoXjQUcMXWvjlrDuiTJ/ktVxR+XkgaNLrY9yLn9P3L8nFXJvs44IAwJxya65QXj1xXtJ+edhHASr7AiCSFvfCOddS93xG6RuWpZfVhUnL4EG98e61AFxxoQd2oT/QkHCqtmvbbDq00altYz9UHdsflryITTdDd7rHxaLB5yDJljaRJ0VvepMkfl/+B52YBHbg58ybtw9Np80RzA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/8bclElul4B6CENXZljmyYYupBA6dEYdtz1HxiqWmsE=; b=kOyvgKyA9J0DQPZkvYHbLxxWDR5alM+F4MFAKajP/FKlXpjT2vgYFWo76S4ZgnhnmXd4kbjtTI8TF211T0hc5OKD87bEHoEI6sbqghESNyECiibsybMN49WclZcsJl1AfTc/a/yT81ko1IarxGucwDNtvlzgpuGc1nYzsc0daxo= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by DBBPR04MB7690.eurprd04.prod.outlook.com (2603:10a6:10:200::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.15; Fri, 28 Oct 2022 09:51:19 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::1587:379:da06:2f18]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::1587:379:da06:2f18%5]) with mapi id 15.20.5746.028; Fri, 28 Oct 2022 09:51:19 +0000 From: "Peng Fan (OSS)" To: abelvesa@kernel.org, abel.vesa@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: linux-imx@nxp.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Jacky Bai , Peng Fan Subject: [PATCH 6/6] clk: imx93: keep sys ctr clock always on Date: Fri, 28 Oct 2022 17:52:11 +0800 Message-Id: <20221028095211.2598312-7-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20221028095211.2598312-1-peng.fan@oss.nxp.com> References: <20221028095211.2598312-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SI2PR02CA0050.apcprd02.prod.outlook.com (2603:1096:4:196::11) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|DBBPR04MB7690:EE_ X-MS-Office365-Filtering-Correlation-Id: 8cd79d59-2081-4ad4-89bf-08dab8c9f667 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sd7+UAdDCtbIWWkuRF9CiqsvCSs9sr/Yknnf2PFX2/wuYbM2tMnkmar3qQY9CcpHc7KCE4KsKJ4svxbQrUDtdoRCvixoASjetAoQ45SpSAy3z42rPq5x5kjt5diGp3REzruR5ornTl/acFM5kwp/Q1pg4KMv2dCxIjeD5MT+O+b7z9nTy7NigJN8+3veMVK9CmNe+gzdvkvEvjm0aDGdzOmVm1MivLhn4gkWvrsDww+hYhxRYGWcUdsyLzM9392/YAVSizlUDUZavuxBgGU+4vm+YxKdf/N+V/L1Zh3GMbR+a5X8AzxsKFiWwii9DZKMbh94gZmRW0ajDgHg8hF3DbltKo3QzXP87IgiSL3Rwyz3rUZdADtbeX9H/PpGeoBDbxddRXZSIywHs8g2V54hQdNGRm7KXcDOzXM3K/AYev3OokvFofy0zmv9mSmqe+v3XEme0DWVw1Op9onI+HKsdLjSsADG9TfZt6mPM6r4rCDkp6bljZk7TpKHvWwnXwX2qs6M6YXuXVJKxJgXelqGhBBKw/PGrJ7qrWDk7qrsLtu3Gq4kDWC+jPjNIKRTjGiG+UjDz8aV4Q+f3nMqFkKqZtpc6ZRCi9rbo1vBxZ0SngUbHn+H44sTDqaKbTygJpjnS5vUzfnyyD1GIDo4q4pvN6ITbpYqKG0XVD1Ck+ffHD6ZRBKaQfm2Rn1nanJSjrrNheejsxQOneCzP/ngtVFDMOLd2NmRuexYcsKEmfj/dIsFVM78KKoCr8nA1hJ5ndtdOEvOswAvsXxqY/24UKnsbY+gRRePC5b6pfD2W5bklKM= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(376002)(136003)(346002)(39860400002)(396003)(366004)(451199015)(52116002)(2616005)(6506007)(26005)(6512007)(478600001)(186003)(6666004)(1076003)(83380400001)(8936002)(2906002)(316002)(54906003)(6486002)(7416002)(5660300002)(4326008)(8676002)(66476007)(66556008)(66946007)(41300700001)(86362001)(38100700002)(921005)(38350700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: CxlVRX+VofZFciCdHmq1b2iYCoz7J1EJeoe0jsSR0rtdEQcocx6z+la8AbRHMQbasTRpbxavGQraxpZindN7A/D4QECgXBMxf6oEOt8nJ18Ou/zxCMcRRYqgnMbsYZKx2GbjuJh7uxnbKieqhgb+73oFAm51X2bpQ0NS/0hpOVeJ8Fom+2NSuIGrtoph79cQc+VkSJVzPY/brjTQN9NaKj3OtiSPtzGCjIExLswef0xl68qZXj5YHEEeXZVuInB+mijEr/mEozFdQ7RnSEDYbN1E2XNMeZuwCLeHOqcdzYrR9btqjeSLUeXy24xOEKFh2PXffDl8XQ+ZNfeMoSfvki2yiTvtu+fnuLKMJWJefgvU1xiIs3QWbt7RKD0shCFoQk9GnzUZ8/oAHBNWGWDNSEy6YOKzQbu9A7Xv2C4vnWtC19I59V01MhsrEKrgNr3SR1D1D2i3qNubJDPSba4QBgZyht+JBYgg6O1sKGgR1wqD8JWYJynPJlIxqpqjxNabBHQPQKy3PVsvyGeLDnrheInJMWvj7w2Ex/RZMsKFHuBpwBG+5Mlam3lu1oIPEKd/zRSf3l+tyjofU2g7UHM+OmfmoPDM06O1LOxoBIovaV2jsi3+cQkkugIYyLC5JJu8jz4svLQlm2PDJZOQoiOH8nQOss8U2ufXYcBuDEY+PCfBJI4ZRA31yLAzz9ZdwCcmkWaNb2HqrcPP/sv8zT+8K/HTvd8mphP0IrdADgbYUW0dmjUxYU0SRDCyebtnxzYiz1Ybqvs+p0tHAHjcV2KfrbRPtrYMh4C9wU/vJnSoN0pAUkZJEhSP+0nCqFweycwkQIEI8lVBAGvcs+KFDuGZinlputDMYnO8t1UBzzVg7Ai1TSju+x2eR87BxZQtgqW4J9XkM3R1sZLbf5y5+H/u2o/fdeV2L2vOT/99b1Bxql628Uuo20l2zT88YvJwhAAC3nxApHE2BSofrVBnKoP1ieDjqcDAqvJDcfLlKRz6wPmTuBfV2hga+sEt0dOSBzyr4gxs1tBFrGzZAAdIVGBHTNTfRsaSJXsmv9zDZRKjeeTiSvoM+K/XSebdjl6JaetVIS0rFLptLaDYd4fVnXgAygvxltqnrZ+nkYYy+9yxfCCQW7zjQHVdqwNV7F65oioJXf5g9Q4x0OCMI2WpSzcpp7to5gTk+StR2lZdRRIghzaIP5vM0kLBU5vN4BUxMxX6upeS6N6CGwpuyNj+WmKk6CezZi8S1/QwD4Wb0Zk4MCLzckfDgpdMx2jm8vVrRMSj+g4ml49UBglzeyVlsOP6bykKbLOSrzEyazwZ/VhXGHh6R4/2dKiIs6QYF9aeA7qysUAeOMZoHV8MCuBssPJzML7dv696E7qtH/JDAj/5rL/3gCg5ipdk1jr/CnYhONAo7hX3HrdD/eGbS1l0BxnI20ix7oFHtDpbEizkq2xTQxyVM795WcizdUbgsAeGtxME9v80XOuVJPIr2EK2EClkgZFmiXR9+4llcCWe5BtvWZB+GbmEMdcmwk8Z3ilrE/8vKXIfqiiyLXoZBn5xYX69P/CZQW8CQbMY3qdXT9hBfo5KcuHGZw4sK1j/eC+FIN11 X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8cd79d59-2081-4ad4-89bf-08dab8c9f667 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Oct 2022 09:51:19.1245 (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: uWNDizbAXWf3tDbpwV+tvLk9u3bGOBJZoIDp72HoNtVAC9QoqiOmo50tHUGS1qfRHajkxaRaPnXNXtjpG+YnbQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7690 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org From: Jacky Bai Keep sys ctr clock always on to make sure its register can be accessed for cpuidle. Reviewed-by: Peng Fan Signed-off-by: Jacky Bai Signed-off-by: Peng Fan Reviewed-by: Abel Vesa --- drivers/clk/imx/clk-imx93.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx93.c b/drivers/clk/imx/clk-imx93.c index 7dace96f36df..b42a877ecca1 100644 --- a/drivers/clk/imx/clk-imx93.c +++ b/drivers/clk/imx/clk-imx93.c @@ -242,7 +242,8 @@ static const struct imx93_clk_ccgr { { IMX93_CLK_HSIO_32K_GATE, "hsio_32k", "osc_32k", 0x9dc0, }, { IMX93_CLK_ENET1_GATE, "enet1", "wakeup_axi_root", 0x9e00, }, { IMX93_CLK_ENET_QOS_GATE, "enet_qos", "wakeup_axi_root", 0x9e40, }, - { IMX93_CLK_SYS_CNT_GATE, "sys_cnt", "osc_24m", 0x9e80, }, + /* Critical because clk accessed during CPU idle */ + { IMX93_CLK_SYS_CNT_GATE, "sys_cnt", "osc_24m", 0x9e80, CLK_IS_CRITICAL}, { IMX93_CLK_TSTMR1_GATE, "tstmr1", "bus_aon_root", 0x9ec0, }, { IMX93_CLK_TSTMR2_GATE, "tstmr2", "bus_wakeup_root", 0x9f00, }, { IMX93_CLK_TMC_GATE, "tmc", "osc_24m", 0x9f40, },