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: 12199 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp728207wru; Fri, 28 Oct 2022 02:53:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6kbV1UHEJmgNov4BYWqZwWYum+8oCGLl7C7mP4diy5l/EvuRglYW9ofdYwmcFAwTDEt3S1 X-Received: by 2002:a05:6402:518b:b0:45d:9a19:66d2 with SMTP id q11-20020a056402518b00b0045d9a1966d2mr49272822edd.43.1666950822622; Fri, 28 Oct 2022 02:53:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666950822; cv=pass; d=google.com; s=arc-20160816; b=SbVwTMetjl63zMrh+xZBhmzrMrXBBoRQOQWWVM1qq6pU9G4Tie+Wcj2pcchRF1gkjF ratWTl5iii2YQSeFmS5tqSXNTwjvLZmJ2zoZ5fyrTFZ5vJTtnu/oAL9caw4R1qmvWIa2 Vac+U9esrYX9r8p5vOep8QD6sYo542JHuiz1IKIhkDF0928QxmYxiPErIA5Enked5s3F 22NK21uL/2ipR9O41amWbhNdBUGWg8UWCLp4SVjNWVKN+RDAj70REQsiIw+CTP5kDBTv jgE2JR+BgCzlmSigllfCaN01oeBRwXYHXSLVN3SNvq6txrIm1byZiD5Co+Jprg9rM7XT EOVw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dCK4+CAft4YD+4vtWrpNNJ50gAt2GZlH8Q7y4AflR0s=; b=0tfzfBAy85BPIpnwgBPSG39MuVQKfboipBK0cba/CxO2DfuCr3k67JgAkMlf17TtDV kbDji2T50EUGP7BSPBiOPeWtQblmHmSSoDweY1KdqKWh77/4iInsdY6mq6N3+6Ti3Dop F+Jj3WOV/mtrQ2RJkdmlvZIPBA23XEYvBOBGTlsXzDL89wZTpf1DX3oM7QPxg+5IW48L HBqxdP4TjQkylC4E1ItfwTriDH+a+ljkxXKXTu2PAOLwZdeh+351Fz5UuLK19Faw+nWR rC+kaZbRXistqTKWyErfQRAcHb2FCQCI25eFA15M4v9mCTAwTYz9D+eO7XYWRS0/zDfQ h3ag== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=V2CwWqrh; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz19-20020a1709077d9300b007ad902cd1b2si4108780ejc.921.2022.10.28.02.53.18; Fri, 28 Oct 2022 02:53:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=V2CwWqrh; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230312AbiJ1JxA (ORCPT + 99 others); Fri, 28 Oct 2022 05:53:00 -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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747924625561804640?= X-GMAIL-MSGID: =?utf-8?q?1747924625561804640?= 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: 12201 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp728240wru; Fri, 28 Oct 2022 02:53:48 -0700 (PDT) X-Google-Smtp-Source: AMsMyM45wEw9CJf6zntz9+xhcolI63WEP4Qlg8nPA9pMS0FAuaxBfrpy8aIFX9941Revd+f/rt4S X-Received: by 2002:a05:6402:50d4:b0:461:e349:56b2 with SMTP id h20-20020a05640250d400b00461e34956b2mr21993979edb.17.1666950827732; Fri, 28 Oct 2022 02:53:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666950827; cv=pass; d=google.com; s=arc-20160816; b=sTu1SjwHC7f7eLMQdPIBrARogjlk8w0Fz8iGs3yrcV0uZEg3+TJVUbrEE9ZzM/zI1T T3rJFsPC8YWnbCebf7rvT/E4x0h6aODzsHWx4dVlC3MdNJv0QexSiBVgC+NJdG4RYssq 0Nj55mzplyBejt9oEmph0Ho51BDhIF/CL1VbbOhhZfzPZi2gZMSDZ3VWefxvdknVYiwJ POnJ2M1ZPKqdDDgCoPE8roRzRK62suOBdIjFtej1SkMQyT+yjF6H1p3fb3yR5iPNkPbb s/k7WCGf2DI9FgVJLtk7M9Qp09tSBH/Z+VRIOEioo9PeyKgX5PvDmR6dYPVt3KTsqMJc IaYw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=LPeYFNzYxfzSKhDdsuPnk4X+UkX6e60sELc8CFOss3g=; b=WUNKTSiZRiLN9cF9UL1kY7ck/USJeUhiiotVv9arqkeltwQ+DSk0uV4Ntf8cKrgw2G CMhaQVwbAYg6VaEtivmbN1Yzl2f1vhQ/TesG3m9MlWmIX36xKMcx+U9rbgIhFHJYT4nb JYU8F8scKuGYRD7tSmYy90xjrinnoNrJsNXsrBGs2NP0prhm/s05gUlY89x9u7SXhW2T e0lY9+Jrd7OOUZYMJQ0oDxrPT8urwTKAUQDYLHdqKJAWOw1DjgbpSquf2DyBnbThpQxy ujC0czGVuh8xs8Req4KqpYu8mVGT3xUrf4kpAbczpcDAvEFyAR181SQweCOkM2lR+KJh 6jiA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=GyPMsMFc; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s21-20020a056402521500b00461d726439asi1161718edd.538.2022.10.28.02.53.23; Fri, 28 Oct 2022 02:53:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=GyPMsMFc; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230318AbiJ1JxF (ORCPT + 99 others); Fri, 28 Oct 2022 05:53:05 -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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747924631054096407?= X-GMAIL-MSGID: =?utf-8?q?1747924631054096407?= 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: 12202 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp728380wru; Fri, 28 Oct 2022 02:54:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5sGDonp22EQ13tQnjfCA6YJAUAtL9yqWWylycTlZ7JNIrmtoZE3aJGsGL1iRjwaTf9rIVk X-Received: by 2002:a05:6402:1248:b0:461:fc07:b95b with SMTP id l8-20020a056402124800b00461fc07b95bmr450374edw.56.1666950858761; Fri, 28 Oct 2022 02:54:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666950858; cv=pass; d=google.com; s=arc-20160816; b=ThusbaR1vZX7rolJ5pYTSpB9aGJ29X22c3CVKrg9WKxrVwPNmQv1kuDZu6UjcEyT50 kYfx0AHi+pKi1OOZmr/cDGILQXzzN2SsvEpJwA4/xDqSMeVPkBAs698Kk61fwe2ALoHO 9CNB6Y5hHzGkxGXJipr0gwGNwarAgqsd6YNrzsqCuPcXLY7snA6zAelE+dBuYxakYMIR xX5/GTOwDNCfArohucLC4Mg50AoIZp1NIV90B1tuElH0Euc4f34fPEUPIoOQnmJ8P1jU nyUNLxKW7r7/yImkrXM8TzxjWb5Fz+mbVp7cPEKdktNTk/DN59jBGdwmri5tTBBCcCWk aogQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=JBupbEqng/SLogKyNbwJACyshilZfvz645synm/8LQc=; b=fUm97PAP7ydHu7R0AYi9Wpl7dKNGVxjO7n12Hxws+VXaVXaj19KNswARRln3K7qHy7 mDbYJ0nrrvEIjbw9eptdEXorxZkyLgNblKZQ3yP323euS7z9T9pUs6CmJonDZyw+Jj5U S0Cj9UBuq9lMnso1TMzsMoA3ui5A4vcY6NpmC9t14s7kbrm+3BUs4bZd7I8G/5Kf0mNw XGAjuWSeTuunjin5jqLjCUkubvmiPOh7Rvwo6FAOhL/jSFD3RdkDtiIj6Uf97ESfdMX3 fD6gzQRtD1wFnRI2CRuBZdOiOHwopu/j6uEQfACxKeluukotQK7UboLhcGRfP4chr91E ADHQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b="hFmhd/89"; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v18-20020a1709064e9200b00783afe864c6si3053567eju.124.2022.10.28.02.53.55; Fri, 28 Oct 2022 02:54:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b="hFmhd/89"; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230323AbiJ1JxI (ORCPT + 99 others); Fri, 28 Oct 2022 05:53:08 -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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747924663594013102?= X-GMAIL-MSGID: =?utf-8?q?1747924663594013102?= 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: 12203 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp728516wru; Fri, 28 Oct 2022 02:54:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Z+87Ajx1iN+kPy2k6BHfTMIs9Qs28/qyzdNhTrihB4dk0DTZJFxVTtatiYwaGkuen26Qq X-Received: by 2002:a17:90a:d588:b0:202:aa2d:1022 with SMTP id v8-20020a17090ad58800b00202aa2d1022mr15394505pju.31.1666950881774; Fri, 28 Oct 2022 02:54:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666950881; cv=pass; d=google.com; s=arc-20160816; b=PvcZnLMwB0X+fGVx7vekJD8k2cwH5LS3EUZEPnvG2L0wX3yw7x3Bqq5vCUZnfE5OK3 wvS/J4zModICis0ouBVbwmBEJj2bz0yux59zL2SEAtQv4qO3N/ztgETp6qPsys8t0GNP tc7dlvmT1kMV0ydaknQmFRodFB2kSqbxpps5ZbreC0iXrapYOPyIh8TXlUQzLwenoEC5 C3Jpp4C3nh8GbiXBYLppoCPwjexHZOovDcr/mgCi7uRRCF62GdSsv0ngDxiiIPE9uVTk AezgJDBp63XXAZXvuH5eJSvlAgDL/GXVGI0/8/0c/NXag4eAcGYPeP7TpiCyug9Zfjf1 PZFQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=EIE1Rdy8McrFUlqWR6tNZu974PdiQqqyFo1QeCyMELw=; b=hXERzA4uXr0s9WAumufAOJvcC0w/q4DszeIfejUzuK+uCN0GdOuaJpPklrBT4wQyFc 3xcE9nToBc9G/rKRdWDmzrDtVJ+tnhmNZEYG7SjGwPiRwJq+3s0zfc1JVNStyUmGvHYc T3IxQxcVFjvAHVPHQSmyoWmQzYB9Nf4FO909ErhlnPCoSAhtQKAyNTQRRycptU0aaVbC 8qlHCbtjXWE0c2WXquobqBDn63IFRYWdiSg7pkRkISq6kLIlIf3dQDOfFYA4hWZp3Qlc l3SCPblUFe7/gwOUmxd1AaqgszKmkejc8+urxoWeVnn1+MyN5uavyY+H1+tJozkABn13 DG2g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b="V0FMH/Jz"; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r8-20020a654988000000b0046b15902616si4594601pgs.270.2022.10.28.02.54.28; Fri, 28 Oct 2022 02:54:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b="V0FMH/Jz"; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230336AbiJ1JxP (ORCPT + 99 others); Fri, 28 Oct 2022 05:53:15 -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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747924687644546400?= X-GMAIL-MSGID: =?utf-8?q?1747924687644546400?= 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: 12204 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp728668wru; Fri, 28 Oct 2022 02:55:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM40lWEoxOqNQ4QW+tnqgGbUksx6U0OxIN0lZ7L9fRPhGaH0Ru4+dMTbKDk5wSP3b5+WLDvI X-Received: by 2002:a63:5a46:0:b0:434:e36b:438f with SMTP id k6-20020a635a46000000b00434e36b438fmr46053801pgm.351.1666950914166; Fri, 28 Oct 2022 02:55:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666950914; cv=pass; d=google.com; s=arc-20160816; b=WaEJB2yy8VJdG6igz0Y6PKUYH1rAwYU0CbUjBJm3Xfp0N8CxZgixgQviGaRec3/sas 84pCVXv5RSAb7pPAyVwT2C3aChbhSy4LBRZyelutyEsPzEaRHoclztRSeYi+vjEB3vm4 pckTdEszxjyHyPBluNNQv/XFufmgcIEMAgegeUahSXebX7ezxCG6wFzdnF1kafxSUnmW Hn9y41gwaEDPo3/J0oUcAYaoabV2fDM8jYwCRof4YGwgW11UAO5pFyD6uP8ssV9g8xM0 Ko6LIB3xkxnsGgRhmq3tCH3VY52Xe6LOJBgAaOIV/eaYUfoq9bmyhJCTy/csD0iAMyxt 9OSg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=iD4s9lO6PjPq3IAEopQSnp5Qd8A3LSv3nNa0xqxwxv4=; b=tSQ34Cm/ZOM87OBd4WD59P7Pnhxff7cSS6Ol9apIMw/qMwWemcaqGGEAmDKYtbWWDZ 3Tl8Lsyee23sXvQfVJYmQSOA6DT8yGVtPv5aB/Iclic4xq000Es+7gdbQAYiatfncuIA BJsAJqWu8JdjjDIsEOiyfjpdyswitg9DDGf8yyl9B7Qv6UdKqPAfSy5wAsBuClPWknow HGXGBKKYvGp4x8zCBsbOXM6eoM95mHeqjeP7Y/ywwrBZpX7mr2HxhVBMFnzc1vvJSTqo 3DFcxMEfSlk087arBnCdLiUJ1lwh0tb7rncjq+onqejY0jwL+KKq0F7Gf7jgv5rQC4/N UGYw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=hyAk2SVc; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n190-20020a6340c7000000b0046b2ea05986si5184131pga.63.2022.10.28.02.55.01; Fri, 28 Oct 2022 02:55:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=hyAk2SVc; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229961AbiJ1JxT (ORCPT + 99 others); Fri, 28 Oct 2022 05:53:19 -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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747924721945768175?= X-GMAIL-MSGID: =?utf-8?q?1747924721945768175?= 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: 12205 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp728754wru; Fri, 28 Oct 2022 02:55:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM75KPz/3aCT2fmTr0di7LROra5+K+oPn4DJTN/zqUjgzhRA6iYQIe2CmI2WQHCXAcif3KJN X-Received: by 2002:a05:6402:1348:b0:461:c056:bf65 with SMTP id y8-20020a056402134800b00461c056bf65mr24561671edw.414.1666950929817; Fri, 28 Oct 2022 02:55:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666950929; cv=pass; d=google.com; s=arc-20160816; b=AAqFfmY/JiOvr+tzEBXv31bvVhCrik3xUYw4dD6cB4xRMef2QzEsZ8KrlbG8ml43B+ O1qRnXiPhkTdsnEKF/oSSc+deaORB4YsgwPFiX6dvvB2zL3Y7po7LRNNViGKnLZW2c1P q1JZrg0joZnKVLLy+n3iUn37YFcIOcyjoZ2ERaUiX3WjGEKrfHKUJwsb5LPYfFje6IBP tmTn9M+LXPgg8+vdkl7BtfmdKU28pRLgYef4bAVQpl/JN1bPIaL4HR0oeW0Gr+L68qmM 2j+GGN+s9dswctaQD+RsZhTUgaEYxXf5oBDx8kKjCy/2Xm/h978aqe7zDLugp1zVt04I 5oaA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/8bclElul4B6CENXZljmyYYupBA6dEYdtz1HxiqWmsE=; b=x3j9k2N/hf0AydplMucrssZMJrQYy7zyR2Rymvxj0FgiNe+eq0RElUd+iIOAoSDXRY oYExILCEwBE8JPw18UKd8wnZh1Kp0lsRQB5ujv1DX8IVtvSC3dIv+cHeWDHQ3WlJLWut R2VQ+Jt5exQoOZBIGxkPNTkqO7d6n1OVgNR+ERr15vi5c6J7gK4ePxbhMk6m0Dao7DbK ImfpGgfDfXpdjsYINEOT9zkgFLsQA/7QFxd5U93eUneLnLdyRqkMAHxX9GW3fdMcKO4N SWXcpSmUkl46tIdsW1d8zxJiqwA8fE7VLLFlOfq35fizDQGZFoo+RemoD8jROo37iCFd PGpA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=kOyvgKyA; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c35-20020a509fa6000000b0045bdff8a884si3890373edf.268.2022.10.28.02.55.06; Fri, 28 Oct 2022 02:55:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=kOyvgKyA; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230252AbiJ1JxW (ORCPT + 99 others); Fri, 28 Oct 2022 05:53:22 -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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747924738224443283?= X-GMAIL-MSGID: =?utf-8?q?1747924738224443283?= 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, },