Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp243704rwr; Thu, 4 May 2023 02:14:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7lsFQaUG2z6qsffy8uUgEIEAJNyg4zGkLEp6lcYdYaGAmHfpZwL3g8MQwzUQCFPmt79Hm4 X-Received: by 2002:a17:902:6908:b0:1a5:2760:74ef with SMTP id j8-20020a170902690800b001a5276074efmr2698218plk.25.1683191682438; Thu, 04 May 2023 02:14:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683191682; cv=none; d=google.com; s=arc-20160816; b=rH43UoFOVyZ/zfdUhZn/fEChN60rEG+sX+fx8H4gtqiy28ItgcfkgHSC3jzcwV0OAC +SKyR3AQEk8OcSqD3qnyXO75szryaQIO9nrO3q3XMWFLT2o89id3+GxeTmaD8Nl6tOkU XUu6PD4rx2bGpcRhW/20w/6eDnMt2sRZ3HFuFLx7ZAm6YYf80DRdJBld4LH0yP1EhuiF oTd98eZeZrbEMQ5/16cfw1hWmSqp5s2yECQsYQF92K7arThsYmTd+uEjcT3mmo3hf3QM h1J9SpcFApMhbSORyw21AHaXx7g3eSxZfSPxqZZNvCncFIfeWamRY/7G9SkuLT4CehPl GELQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature:dkim-signature; bh=PJ+MHi8BKY86SWPKwEBcexmDQBI0jwalX3S/C8DpKjY=; b=FhR5HgJb95yo69+UTBsWWvC4Utr0FN0XJLdu9kNXaxYr7XDlNSlGMPza2OT+mOsStg jCu180tWyZX3Ha908QVSvSoL1sdiX1GsdzbQSQ3zKt2bkjQWowohsWPCYozAyReZZyUf 7LhGh13mORi08Nga1KgSIIOFh6tI7ZchmUVluVj0q0AxT5LsNg3fdDFRWuOe5zeZ9I35 nRwe9HF3OmYdzhT31MnK3uWKR8RL9sqjw8wdVqUuISfs8BXAxkb4+v8+jgpfvaeJSFeb /SZXfLx7Ic4z3dtb6RPjoaFFn/60ERBKfZrN//JMTdUNmgsVW5itzY75Ct6jLLEJQNsD 2khA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kroah.com header.s=fm3 header.b=OkJR1vdZ; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="Np0mbT/t"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e12-20020a170903240c00b001a6a1ed899csi35900116plo.644.2023.05.04.02.14.27; Thu, 04 May 2023 02:14: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=@kroah.com header.s=fm3 header.b=OkJR1vdZ; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="Np0mbT/t"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229924AbjEDJK4 (ORCPT + 99 others); Thu, 4 May 2023 05:10:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229683AbjEDJKy (ORCPT ); Thu, 4 May 2023 05:10:54 -0400 Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E0D8AC; Thu, 4 May 2023 02:10:53 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id DC470320093C; Thu, 4 May 2023 05:10:47 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 04 May 2023 05:10:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1683191447; x=1683277847; bh=PJ +MHi8BKY86SWPKwEBcexmDQBI0jwalX3S/C8DpKjY=; b=OkJR1vdZgMQkDeebk3 C3Df+sYUG5IKzDgGWDzP54zncGqO5dMLxISsW9MRjxlY5mHfYkUosVFISdiAJC41 ptg80omXiJjpzbcGf/6DhvjIn1eqC1+wvpu/5OT2tQWg8AYOOvRWmmDVXe5CIyXZ oMVx1/RfSd1AItwWlg09Ew7QN1J4tXCFvBSfBWwDfZsZz9HiZEPjApUSpmc67qn5 VKU3dzluckNiasW3k8s8dB0zCyAzpzG1biELtAfSYiV4fhem/mrTc8/qHqoTsK1/ WwXwanX5JmQ95ShHqkQ+1+pCiJtTw4ra0fpqregHs8hgGZFfuqpaXbrsJT1ZdiO1 EpQA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1683191447; x=1683277847; bh=PJ+MHi8BKY86S WPKwEBcexmDQBI0jwalX3S/C8DpKjY=; b=Np0mbT/tXdr6/OFl02CaRMdgq4uO3 5QiemDuzsd15WsbMN7h8d01YHCLQ7nl+fK/OgrKX1t+/g0YX3WjFOaF3ZXyIR+sC JaESqTvBVva9CyxXaNLmmuvCoVHN8icnPWd9T69BpaNEupv4+AsUVLG/mDdspWnz iWHSGMWirMO+LxTBASSccT5yHfQ+68t6zOBcHWLBbogN39+gwFUhh+4TnwTrGdzu RLKH+hYcf9rZn6rVa8ItUCosIV9b0ZS6I5Gs5g3fwNv2eCn/V3YRgstZXgRft1LF NQR4+V+AGasKMB3MI7ALGaHbpAb6xhCKYc1l2akYUSNoRkqhDn3n3JpPg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeeftddguddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepifhrvghg ucfmjfcuoehgrhgvgheskhhrohgrhhdrtghomheqnecuggftrfgrthhtvghrnhepheegvd evvdeljeeugfdtudduhfekledtiefhveejkeejuefhtdeufefhgfehkeetnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepghhrvghgsehkrhhorg hhrdgtohhm X-ME-Proxy: Feedback-ID: i787e41f1:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 4 May 2023 05:10:46 -0400 (EDT) Date: Thu, 4 May 2023 18:10:42 +0900 From: Greg KH To: "Peng Fan (OSS)" Cc: abelvesa@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: Re: [PATCH] clk: imx: imx93: introduce clk_bypassed module parameter Message-ID: <2023050410-rejoin-vocation-8560@gregkh> References: <20230504085506.504474-1-peng.fan@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230504085506.504474-1-peng.fan@oss.nxp.com> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Thu, May 04, 2023 at 04:55:06PM +0800, Peng Fan (OSS) wrote: > From: Peng Fan > > With the clk names specified in clk_bypassed module parameter, give > user an option to bypass the clk from managing them by Linux kernel. As I said on another email, no, please do not add new module parameters for drivers, this is not the 1990s Also, another comment below: > @@ -310,6 +357,8 @@ static int imx93_clocks_probe(struct platform_device *pdev) > > for (i = 0; i < ARRAY_SIZE(root_array); i++) { > root = &root_array[i]; > + if (unlikely(imx_clk_bypass_check(root->name))) > + continue; Only ever use likely/unlikely if you can measure the difference. Here on a probe function, you can not, this is not needed at all, the compiler and CPU will do a better job over time than you can guess at this. But as this change isn't needed, this shouldn't be an issue either. thanks, greg k-h