Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp338928rwr; Thu, 4 May 2023 04:03:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6ajjwBCL286/+8MbkKXjU1Cy90b5oHv0Xmk+WYcqDhIgeZylwhnC1GGS2qYpnw9kzD2Ym4 X-Received: by 2002:a05:6a00:2386:b0:63d:2343:f9b with SMTP id f6-20020a056a00238600b0063d23430f9bmr2078415pfc.19.1683198184524; Thu, 04 May 2023 04:03:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683198184; cv=none; d=google.com; s=arc-20160816; b=tOh4Cw/pEgxgvjjVfdCS3KTxPfJnOn2JXopOR+fd3DDMjHofveUAm4SaLsq1IgvKOF n3qSyiK1NgD1XNFB+A6nxYkLI+GFYSh04RUaa00G73RLq6aEF3t4cR2ANB1VndUQ7G6q UCuxbeLvf+EXDYHzzTJc+GLr1Dvk7l40osN7UJoMMeRGr4GkLgifEvtukxzqYywIXvY/ cK4wiDF/9EdW6c3jH+LoXLVxd86hsYtRfmyMlwarvHfpx3Q72Rz5+1kYVPwmhNcox3tY BKjQghlO5gI5SATDPWXUGK+cxygVcELA+N6Nm45gqqUaXCM3n+z2Oxx0QBTmkuuv9zRe 6EXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=UvJ0uy6HEutfybQ9hXUZ0WTdfx2BPiN+lraEEYn0v8k=; b=Msa5g7pvEPT7CREtWYhY67Ru4bdbcCSgmnEC0kXPNwNwOLg7rXRUfxRxxg4S/xsA0O VBz2sAy7ueJ+B5I/LK4Lt9UoMhYe1CYkz1bWZzhyhw1QaVxLozEq6vE+os2lNT43REsY 60WtCFkq0kJ8BqcHkp0vZ8vZ3g70MygM6BSd1ZVnzy6K6jl6jUMbezi/NTLQn2I/qvn0 ns5B9+ri577J+ISCkRnMU1KtiBkP5RecWL6RqUnCH+zMjb699FL6B2s6c5IoPkF8mA/y aOOxxxk0AM++4al9OJVZdzOybG+UzDfOS4uOe0HTKLtev6jxxPAdD9gq32c5+vwZp0Fs AAXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=L8DvdtYM; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b190-20020a621bc7000000b0064397f082e6si148848pfb.349.2023.05.04.04.02.52; Thu, 04 May 2023 04:03:04 -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=@linaro.org header.s=google header.b=L8DvdtYM; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229606AbjEDLBS (ORCPT + 99 others); Thu, 4 May 2023 07:01:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229717AbjEDLBP (ORCPT ); Thu, 4 May 2023 07:01:15 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29C5C49F7 for ; Thu, 4 May 2023 04:01:14 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-94ef0a8546fso51236666b.1 for ; Thu, 04 May 2023 04:01:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683198072; x=1685790072; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=UvJ0uy6HEutfybQ9hXUZ0WTdfx2BPiN+lraEEYn0v8k=; b=L8DvdtYMZCKoa5b2u64jYvu195WXlh+lGno9oFN6EYpFYsEMQnMxrpYihXNTEKSQfd gCZEMZpQJIuXPQuhV5gX8ljxClIC8dm1kTc+5WhFO6Nu01MKMJRTP+NNNCU6YofDGBMY V/1uJsDfCZVlGJ1vVBwsqmP2Kg38Qcxn1FliaLaHHK+y/IvcZqiEHlTbtpCFFNHbUlVU QdMQseQDl32ZmVQLnoZpxen7LiywtiieNOnTt12F1Fks4WeX1kAYBq8XqqAa9efEGKo8 v9c2JT3ev0yZa0wLMIJpBbQbMpjq74olpzlx+zmWzLP3JNYytOvGcuCqezR3ln4jZDfX O7gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683198072; x=1685790072; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=UvJ0uy6HEutfybQ9hXUZ0WTdfx2BPiN+lraEEYn0v8k=; b=UJS2BSV1dEK2LZJ3wI69SO24ONDNW0xqriwjpMz6fSbEr7Q8cG/txo9VmH23rY78XG 41TCK1jqAMG8rDuKf06kXyWUEv/o2ZOcPS8fwTQtMKMTgAEutLSY+fXYj4KEzFieh8vJ bsS/A5T1kKb/7hkmb603PrV5YMxhaK+pTOB5XLF1ngVyQSUEhb23sHd4bdN5IDLDlA3p FCaJTzOES+fFq/zYWC5nUwWCNFu9cz9d8ztWaXssWjzscoBNVOjfeQh4c/p9TOsSSISW V7m6NTzrX42bbbIgnuyoK6SOJFHNEeMtkO6oZryf0CukLtP75R6PIkMbPf6m4BIDGNLi P+2w== X-Gm-Message-State: AC+VfDzuDgBvyHixzyXydMgMH9H74LpGv7Ol0lGtGyrxXcQ3EW+cjOxM +Kzm97Cz/L6OY7guuZuMUVXK9Q== X-Received: by 2002:a17:907:31ce:b0:94e:aa8e:b56e with SMTP id xf14-20020a17090731ce00b0094eaa8eb56emr5367364ejb.33.1683198072550; Thu, 04 May 2023 04:01:12 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:cbf1:e7ef:fb81:e912? ([2a02:810d:15c0:828:cbf1:e7ef:fb81:e912]) by smtp.gmail.com with ESMTPSA id u13-20020a170906c40d00b0094aa087578csm18851613ejz.171.2023.05.04.04.01.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 May 2023 04:01:11 -0700 (PDT) Message-ID: <517aecda-681f-ce77-08df-97738a865f96@linaro.org> Date: Thu, 4 May 2023 13:01:10 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH] clk: imx: imx93: introduce clk_bypassed module parameter Content-Language: en-US To: Peng Fan , Greg KH , "Peng Fan (OSS)" , Rob Herring , "krzysztof.kozlowski+dt@linaro.org" Cc: "abelvesa@kernel.org" , "mturquette@baylibre.com" , "sboyd@kernel.org" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , dl-linux-imx , "linux-clk@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" References: <20230504085506.504474-1-peng.fan@oss.nxp.com> <2023050410-rejoin-vocation-8560@gregkh> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 04/05/2023 11:34, Peng Fan wrote: > > >> -----Original Message----- >> From: Krzysztof Kozlowski >> Sent: 2023年5月4日 17:31 >> To: Peng Fan ; Greg KH ; Peng Fan >> (OSS) ; Rob Herring ; >> krzysztof.kozlowski+dt@linaro.org >> Cc: abelvesa@kernel.org; mturquette@baylibre.com; sboyd@kernel.org; >> shawnguo@kernel.org; s.hauer@pengutronix.de; kernel@pengutronix.de; >> festevam@gmail.com; dl-linux-imx ; linux- >> clk@vger.kernel.org; linux-arm-kernel@lists.infradead.org; linux- >> kernel@vger.kernel.org >> Subject: Re: [PATCH] clk: imx: imx93: introduce clk_bypassed module >> parameter >> >> On 04/05/2023 11:17, Peng Fan wrote: >>> + DT maintainers. >>> >>>> Subject: Re: [PATCH] clk: imx: imx93: introduce clk_bypassed module >>>> parameter >>>> >>>> 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 >>> >>> ok, but this is for boot, so only DT could be considered. >>> >>> But DT is to describe hardware, here I just wanna give user an option >>> to bypass some clocks. Is it ok to add a DT property saying >>> "fsl,imx93-bypass-clks = , " ? >>> >> >> I don't know what it is to "bypass some clocks". This does not look like >> parameter for system at all. > > Currently the linux clk driver registers all the clocks and manage them. > But when M33 is running, M33 may not wanna linux to manage > some clocks M33 is using. So I wanna linux not register those clocks > that M33 will use. Ask the one who designed such system that second processor pokes parts of first processor... I assume if the clock controller is enabled in DTS for Linux, then the Linux owns it. Otherwise how do you expect to handle concurrent access to same registers from different processors? And how are you going to decide which clocks should be managed by M33? One firmware could want to play with one clock, other with everything... Module parameter is not the way to deal with it. Probably Ahmad's idea is the only one reasonable in your case, if you do not have hypervisor. Best regards, Krzysztof