From patchwork Wed Oct 21 08:31:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 11848553 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 534C1C4363A for ; Wed, 21 Oct 2020 08:38:57 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A7BCA2080A for ; Wed, 21 Oct 2020 08:38:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="0qI7BDGw"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="HgM41u09" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A7BCA2080A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=SB2enHZCdkGVYuPraGG3Ct8jj2ghaoRUvxqz/GF5He8=; b=0qI7BDGwBfpOQROTQfcKxtGs+ uXFWT2ehsQBHtJojCPEmlXGAzuiHLMPtpRZnZiuhB5zsrV4VS3BFJZi+2XqIIDzSJf//1v7SnVCnr uDrkKa27vd8iPhv21Ig/JE9ANdsWRQXNGjHBx5p7SHX0UYauZvYN0tv6Eu2waEmM0SRWPK78rmmRO JEF6UyRgpv1aymnU10LxYuur5EgH+EUcKHXlkmvD1tkkutiS74RMOVNEtghyfijlDuLC6gG4kTaOS fTS8n1S8PjCnAZ873/n6r6nahOrHiEx7Tng9+TvcmOKrc7afdHEDKCBTjZViKP0wB6cuUsdTVw45O HoL7REEqg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kV9cM-0005gW-KB; Wed, 21 Oct 2020 08:37:10 +0000 Received: from mail-eopbgr10074.outbound.protection.outlook.com ([40.107.1.74] helo=EUR02-HE1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kV9cC-0005eQ-UF for linux-arm-kernel@lists.infradead.org; Wed, 21 Oct 2020 08:37:02 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AwwyTBMp/hGXORfUxss5AprjyPBBO9bj7ReAt9H44LX5PQebr8wDrVshHsr+JkOujU1JzVVoVPcN0Ixl8w2IDZ2Z7kUVLXfsyEGKCm9kkMKqDaDU/TlfZz+NPBDM7YNpE9K9+yZfU1r1kWWfe3RzsoksCyBowPAB/EibG8PQ+RuO5DcY82DlojyHPT+gUTzVMtB+JRgz7kP7QqqVgEiEIzlgc9nkjo9NGytC9uTSQ1tPt2N+ZYrXRfyy5azd5aMjHxYn3VI0FfscJEXqmzUmlm7xOY7gBfcIj1Mavq0reb70rrTvbaWdT2bZ0Vw8Jj/eHTLUZqDQnnAhIw1ko0OZfA== 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-SenderADCheck; bh=qAL+RuC6sOBPgmdy9CPtMnJ3C3ef7Wj6C1za3+NDcwY=; b=lDALBHi053GXATIuU076ibhmtvGh6kciIt+7jZZd+pGm7RAzx4ewxywVUdewRN0CveWeBmUK7/yJT9zeIiIvC6YriJiBAYW8b1fu+GZZ6DFJ1lQ0tYmyx83URyzkAz6Z3j8sLUwGXpICn1F/yy9MzpWc3+rzl4rPn0tQO+VAkHxqAAzjO9aAa9hpbyelv3QW9bgK1hkM99WTXqES6H8EjL7+vG6+sx9cE2Vkd86I2gq99DUacnD/MUvS+x96LE7oYZBITp+MPiqyZ0NfYgCjShFgT+DhCNohDPPJO9zlzs3IB1kph1hNzpdkqezHLLRsBbfdnfeTJh6rrnoU8SbgDQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qAL+RuC6sOBPgmdy9CPtMnJ3C3ef7Wj6C1za3+NDcwY=; b=HgM41u09cLwz1U5XyfrGABKEQCJ8FT7pkSDoTu2Zc67iQCMv45jfxpariXgSDy8PoifMB2FWcZdWdf3XbjaSWK4oMtrcCM6TiSTWj1hWJn5Zf1HdDp6A8xRk4H2ppRXUtmK1giiCGzN4muaeteHwNBbXIpmeJkDEj4aZBJ5ssmU= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB6PR0401MB2376.eurprd04.prod.outlook.com (2603:10a6:4:51::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.27; Wed, 21 Oct 2020 08:36:56 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::ec42:b6d0:7666:19ef]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::ec42:b6d0:7666:19ef%8]) with mapi id 15.20.3477.028; Wed, 21 Oct 2020 08:36:56 +0000 From: peng.fan@nxp.com To: sboyd@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, abel.vesa@nxp.com Subject: [PATCH 1/5] clk: imx: add imx8m_clk_hw_composite_bus_critical Date: Wed, 21 Oct 2020 16:31:30 +0800 Message-Id: <1603269094-29367-2-git-send-email-peng.fan@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1603269094-29367-1-git-send-email-peng.fan@nxp.com> References: <1603269094-29367-1-git-send-email-peng.fan@nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR03CA0155.apcprd03.prod.outlook.com (2603:1096:4:c9::10) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by SG2PR03CA0155.apcprd03.prod.outlook.com (2603:1096:4:c9::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3499.4 via Frontend Transport; Wed, 21 Oct 2020 08:36:52 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 1aebf226-bcb8-4162-ed27-08d8759c7816 X-MS-TrafficTypeDiagnostic: DB6PR0401MB2376: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:284; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EBeOkBqwil3SAHmh4b75I0kAh+NN5uNGEJuJQsCCnZrjkkhpOBkKEVVSgtxGlrKfuN9OuxU06Ng388jfFzKDdNdCkD6cAv/2aP1kDqKsbWaq4qRBNQNqSPDftKG/mF6B4cS5fm0vvQxd5I3Ctsm9jWIze5f/A+9aRAEm4f2rFfznmWfSwwOXy7BzWAp6Q/7V5b+wwbEBrhnupfeOpDuHDsK4EkyuEX9jmf6hb4s20i6FqeujJQMwqDV0kiZf11Ey/2v3Jf1H28L1DkIrbeH/0GoAx5kT8S3mN6hy0/NkAOfdb8Tcu0MUrPgGKdM4WWYkExVGuU2KJ1lxePGkmNulMyrBlcWXv43rZMvBod82BvQZsz57i/b3KbEnSDAX4xEJ X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(396003)(39860400002)(136003)(346002)(366004)(69590400008)(956004)(2616005)(16526019)(5660300002)(83380400001)(4744005)(26005)(52116002)(4326008)(6506007)(36756003)(316002)(478600001)(8936002)(66556008)(8676002)(186003)(66946007)(9686003)(6486002)(6666004)(86362001)(66476007)(6512007)(2906002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: YR6s1pz4QJgZHuEYp1kYHK0LGm8gwCbxqkxDms+KzKMI8JToOHqZ+1XazW90v23LQS/AkHsuGc5trNw/SB+pS/o0h+P0w4FSwVA+7/usp48p5nhgIRXwOrA54F6ltwrxBNaX8wWueS5FlZuSIvVtxlRIsz/2+/yg2lh5SeuBFJq4YXOO1iuYhWMgbbMIUpIYD4JkWny0nOx0V4qpo77CsrQw00JM9DDanT2fonYHqPIl+ROW978RP7mVxzzpET3GLwB9BOp6MY7iiidfcMlKLydFPQbRWWVGixBxJszEHvLZX9hmrPtv9Y0xNrwALwxcqpKBXGM4Xrdt6cVJh7DWteqdHVQ8GZi1yyThcmzn1jJSYctY/XLRUEmZsnhdmpLzHSeNB7UEwhIS4hILv6Do+3v6Wo8Hl44Wzyezo4t6oPvBKT9FcoyBurIRIg04xxRsjUZk6M4y4ZBFwS61Da0tE0T9/hJPWf1xMF7zuD9kxO4v0ELCtD9op3zsBQmstpYNpOabFNksd09TYXL0DDAsqGrOz8xegz2gUXk96fvaxh/nuzmlODBIjQG8hrvWr1vDAGM9nqTLj8Og7uDEbYejeSpd8YaxFVparJNX+cUQCMYuG9HZDj48yQXbDpv14E2fA5hLLzWkbUTTdhbHO+OxhA== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1aebf226-bcb8-4162-ed27-08d8759c7816 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2020 08:36:56.6629 (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: f8ZEbyCxhUo08mwC08xBYqUbj/dVyXas+4m/CmBizKHuUfdJuqjl4jOk9E/HvcS84KkvvDkzE83AtNME3bNAoQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0401MB2376 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201021_043701_834461_784007AC X-CRM114-Status: GOOD ( 13.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: aisheng.dong@nxp.com, Peng Fan , Anson.Huang@nxp.com, linux-kernel@vger.kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Peng Fan Add imx8m_clk_hw_composite_bus_critical for bus critical clock usage. Signed-off-by: Peng Fan --- drivers/clk/imx/clk.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/clk/imx/clk.h b/drivers/clk/imx/clk.h index 3b796b3da249..1d7be0c86538 100644 --- a/drivers/clk/imx/clk.h +++ b/drivers/clk/imx/clk.h @@ -549,6 +549,11 @@ struct clk_hw *imx8m_clk_hw_composite_flags(const char *name, IMX_COMPOSITE_BUS, \ CLK_SET_RATE_NO_REPARENT | CLK_OPS_PARENT_ENABLE) +#define imx8m_clk_hw_composite_bus_critical(name, parent_names, reg) \ + imx8m_clk_hw_composite_flags(name, parent_names, ARRAY_SIZE(parent_names), reg, \ + IMX_COMPOSITE_BUS, \ + CLK_SET_RATE_NO_REPARENT | CLK_OPS_PARENT_ENABLE | CLK_IS_CRITICAL) + #define imx8m_clk_hw_composite_core(name, parent_names, reg) \ imx8m_clk_hw_composite_flags(name, parent_names, \ ARRAY_SIZE(parent_names), reg, \