Message ID | 20221027101159.942843-6-peng.fan@oss.nxp.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp142911wru; Thu, 27 Oct 2022 03:14:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7nt25QtdLjxCE6aC8e1+5UlMXS+qCdKl/J5Vcc3MjHjOfdMvfRXn0q4LFm5j0M3Ne/yAOB X-Received: by 2002:a05:6402:5507:b0:452:183f:16d1 with SMTP id fi7-20020a056402550700b00452183f16d1mr45834686edb.96.1666865665022; Thu, 27 Oct 2022 03:14:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666865665; cv=pass; d=google.com; s=arc-20160816; b=vcCHc+wiOI9IgoUjSt1hskVTRWlMsPb+HJAsqmVog/f0fG/s5ZdBKB5WqonHbzrjFV K8PKjrRNuFMbhmz8zu14GT8ZsLEB4q5jihxAE+LxS9JwOOQZN+pBb+N/70F9xMxN0MyT g4GE/kk0wTsVuilR3dM4L1jjYXWCqy85dRWkfs9U31yFU4x/HCJNjUj5uk8lBcw6jZgw U4IKg1beBdwj94LMahNcJjsyGe0hL+cNvV7JHjHiP+QO9RE6MEfPB8X0TRpNPsZLIsIP z8XXH6VEUsM6ssYA/8LYCSsHfxGajgn2FhJVa032FIfY8cFBB3JEWPQzJR/ghAYpxqPD NshQ== 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=hMF2UQoM3hDYd2ZRUZ7vonl3XWx6bxAI1Q3/+YWmo8k=; b=yKKjzX7PbBC7KcIQrh9yHcwzvTzkfOoICdMQsFCaOacHebdOoX15/hl9MKz9J5DmYU fXqnWSFHHp6vxJyQujEarCj494g3pXkxzozawMpQ+UFv4R6FH2ZQ4+4Ky5f0sDyNHBBS P8mtDJWoRVEAZeSh3L3fKSYZ34WvkRwppDhalt5mMSooCGMejZnJmqQSsKKMImvEeGkF pMiFab/OM6SqLywDfmUFVBhR1K8GfapNEM81ZUf6zxfXINRCeJXz3KiOouwDlE/0XRMP DJ/+1WnD3uIXe0DoGCj1ZRARY7vC2QuoOlRyU2itL9Z23OVhDayfJGDfRmUF2OE5knvx VZ6w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=lAIL7tKp; 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 cr17-20020a170906d55100b007a92b00c094si1082501ejc.421.2022.10.27.03.13.58; Thu, 27 Oct 2022 03:14:25 -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=lAIL7tKp; 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 S235293AbiJ0KLV (ORCPT <rfc822;chrisfriedt@gmail.com> + 99 others); Thu, 27 Oct 2022 06:11:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235271AbiJ0KLI (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 27 Oct 2022 06:11:08 -0400 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2059.outbound.protection.outlook.com [40.107.104.59]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78FA8DD391; Thu, 27 Oct 2022 03:11:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SC2e+ibq7uzQA8EBs00+w6EkseGz7a35CwehvCrdqQRLXEevGpSoUdUPzmbkVT7AFTwpExvKIilkPv5FwBXzMpTjcaQCxaGPNl1MSnBCLrxAbpXFKFFt2OiV/o04pef0HNQ1rw77NFPFrwXnfsavFRJHYGdSswGCbDWhUU1bpiY959RXxWEHZThDXt/LIDLUJgSOvsVLBokwHX+W6vlJxvSgbLzjkOn/QhkrvpHoggX2ErmcTX5gMrrdmzjSesUr2DkLjCi1d4y5evQU0rhxwvsfYJS4hNADPMwvyLQqMq/qShT3jLVHFbDDpZJtQtlhFbHZ8L+Pw8LMneJZRF1mdA== 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=hMF2UQoM3hDYd2ZRUZ7vonl3XWx6bxAI1Q3/+YWmo8k=; b=fJOe+6YTsqNr4lLtqUSnoKJddwui1gOpZUMAevOiQNYH50xWiMo6QH3aSyAzqiVpfk7AbZo1CKIEMxAzyV3Wu7D/9fyGMQ0D63pKq4A/YBpsXQIIyGWJrgmWdCTeioWARVbL0pvyHGh+24HAmiitCn4Cd8qVYJwh728H1ENaN3Q9/YZn3EI10Z+MIvF2BvB/ArvxkCyv0iTklLKOUS2IV0G5/v4vo9C6oUdGK+ur6JTeaekXme4DShENY2MNodxB9Dz4n/l6KaBnSMxzXQwf1QvRfgMi0VnBfL0Njg5rRGRM5DWWPasJDFy2oVqVR8pbOVWPLkYoWIT6eUs73JxcLg== 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=hMF2UQoM3hDYd2ZRUZ7vonl3XWx6bxAI1Q3/+YWmo8k=; b=lAIL7tKp2xZYRc42P/kjxUwapDRvOWEbPrG8dUu/J05NCYTpHflToa2p1noKcY/ci7ROCbUhUiFwnIT0m2ZBw5p4wkoGC0qPLaIOsC+gh5a68T9GO5TILWPzJ/ZZwMQvfXjzmu3cSs6lnQ7fo1K64l0vg3nmd2UCA1WAInDupBE= 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 DB8PR04MB6875.eurprd04.prod.outlook.com (2603:10a6:10:11f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.28; Thu, 27 Oct 2022 10:10: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; Thu, 27 Oct 2022 10:10:58 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> 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 <ping.bai@nxp.com>, Peng Fan <peng.fan@nxp.com> Subject: [PATCH 5/6] clk: imx: keep hsio bus clock always on Date: Thu, 27 Oct 2022 18:11:58 +0800 Message-Id: <20221027101159.942843-6-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20221027101159.942843-1-peng.fan@oss.nxp.com> References: <20221027101159.942843-1-peng.fan@oss.nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI1PR02CA0031.apcprd02.prod.outlook.com (2603:1096:4:1f6::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_|DB8PR04MB6875:EE_ X-MS-Office365-Filtering-Correlation-Id: 61a97fa4-cfea-4677-f8f3-08dab8038b23 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: iMgMzP57O4RsB46fVNdXXFDc2NW62pq04Vz0xKCSekUSeyrnkX5FoCOSxG1AiSEUteG8kaUG7DuNZqUwn+JinBGrauQ0WegpfMW3oAqPl+aTFyac804fvJ36u3qwUIL+tgNLYZnsyGBSdcUHPPjjkqaaaciy/biSo79kNvUEBDA8/X/bx77p/zhHQyULWGzml2svpy3JIY8Yg7yFnw1oZSDC4NY45cnMNDUcimwCCrEF6h312xjt7aY6YLP9mtTzXGhHoXIZfj1U0hE0ILBWa3Sh9q7w+1l0ZGrcLw2Mncb9XlrWwyPTK+iRRmOueSO396cNLDDyUOUT5LrOVFssiMxLmnx9XOdhIZyoSL786g7DgpRS4Xjl864ZE76hIrPekLSp5hTwNnAKfImT3ilO93ruRzpvAXfhMR6rBQUeuAJRZmP2MHqnp9CApwLF9lPu668qsKqZw3DRVOlHzed/O+xL3qBHFhvE18beLSHEslXAv02/inLfEI882oMDX9pq7MkEBov1d8tc2EFcyUWYJHJTJmU7b32+Iqhnwvc2UHittFpHaFhwddIIxj4S2vAU9pl+K6VQpPm4THustM+OWLN9u1TU0GkZr14GUpNRHnIlut6A7c88ebJjA8/kUFRG63tPiYAy+w67lCFqwcXsDIGBzQqe8Pzo6MmBPQEGELGMeD7rRgWtSH2AZQOUE/EnvpcOJ4e3s8KaWUT6XWSFXLXM/HCq+Eq5RE0NTb8U58P7u/oQtqYrqkP3Esw5NRX64bi7mVYSj9OGDYOxgn9uHfWC1GxhuSBOIiZlNgaRCJE= 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)(396003)(39860400002)(376002)(346002)(136003)(366004)(451199015)(66946007)(186003)(2616005)(921005)(83380400001)(38100700002)(38350700002)(2906002)(7416002)(41300700001)(1076003)(52116002)(86362001)(5660300002)(8936002)(478600001)(26005)(6486002)(6512007)(4326008)(66556008)(66476007)(6506007)(54906003)(8676002)(316002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: +Uy5R8ZlCsmk5VGIyz0j/DlDKcB/FMwpFbcEbcPOTB3WTXsnZVQHh55UfTYJtmwJANUlTkhd9w3pDbPPFOjOo6XsrD2Pug/Z/aoNDkJq0sZFPkGW0FikDS5sIobzv9ngmxAH0Z0zp5ySDSKi3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WFq+lNYjIMjp8wSNRjSvk4xUVSnJPpJNnnoB2etAk4vJdqZF9wr5eF3a31mJbT86cbbspNzGpgNZs9cvG4yUbOVvo+f04nlLOQiAxTG3u5v5IxS2QtgFAe63auCVr2Qiu6tvyRqcDm7D75jACZqwDhQ1Vc+Rzr0/29Xvrig7+OrxCZih0hu27s4pT3Pe3ykHoIx6AixLBWmpE8L0mVTUWDfRFLVVA8VfACsFzFzq43RBk8e6J1gtWeOzq6DX1F+KtnqBbhqtPChcJ2cTaJBQLYFilxZuPFYOLkLOyD1FrMjzI1jmlCz8MoHyVOKYaBDYE9L3dtT68/Gmn+zgpknpXq0xhiXSrNLAQYyWwlixtQEv3egn4ySjdeYTily34+Xc X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 61a97fa4-cfea-4677-f8f3-08dab8038b23 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Oct 2022 10:10:58.7024 (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: LtfOUgVuBR8gMOC0puyV+VHLUejt3L6pCj5bGLvdkJDowWXZlfj1w0CVdS2PZMnk1qorgTcEbK1V7jtvi183HQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB6875 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747835331516892764?= X-GMAIL-MSGID: =?utf-8?q?1747835331516892764?= |
Series |
clk: imx93: fix and update
|
|
Commit Message
Peng Fan (OSS)
Oct. 27, 2022, 10:11 a.m. UTC
From: Jacky Bai <ping.bai@nxp.com> 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 <peng.fan@nxp.com> Signed-off-by: Jacky Bai <ping.bai@nxp.com> [Peng Fan] rewrite commit message Signed-off-by: Peng Fan <peng.fan@nxp.com> --- drivers/clk/imx/clk-imx93.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Quoting Peng Fan (OSS) (2022-10-27 03:11:58) > From: Jacky Bai <ping.bai@nxp.com> > > 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 <peng.fan@nxp.com> > Signed-off-by: Jacky Bai <ping.bai@nxp.com> > [Peng Fan] rewrite commit message > Signed-off-by: Peng Fan <peng.fan@nxp.com> > --- > 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 422ad3c89845..74e8d810db7f 100644 > --- a/drivers/clk/imx/clk-imx93.c > +++ b/drivers/clk/imx/clk-imx93.c > @@ -109,7 +109,7 @@ 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, }, > + { IMX93_CLK_HSIO, "hsio_root", 0x1e80, LOW_SPEED_IO_SEL, CLK_IS_CRITICAL}, Similarly add a comment for critical flag please.
diff --git a/drivers/clk/imx/clk-imx93.c b/drivers/clk/imx/clk-imx93.c index 422ad3c89845..74e8d810db7f 100644 --- a/drivers/clk/imx/clk-imx93.c +++ b/drivers/clk/imx/clk-imx93.c @@ -109,7 +109,7 @@ 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, }, + { 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, },