Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp747528rwb; Thu, 6 Oct 2022 04:06:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6lNq5Fo2+s7L8G9mx5jgcXDST8JQtC0glDmo6pYmSfXmTsNAWQJR+DBsPFs2SS+TbEdOk7 X-Received: by 2002:a17:902:e5c9:b0:178:5a6f:6eb8 with SMTP id u9-20020a170902e5c900b001785a6f6eb8mr4089285plf.42.1665054403621; Thu, 06 Oct 2022 04:06:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665054403; cv=none; d=google.com; s=arc-20160816; b=KAp35GkxnMJ1R9OU9LiSlOTZkOYmmfwwEv0QSVyBfFqR/tPSxmy4erJ7NOT+Nx+jGS BfWwP+anEgmjghaknZLciFF9cduabRkA6u0RPKlvGAWNoxASWXd7bik89hRZVzWv/LJv aNTnusB1DUvsNmCMY69L+AFzY1VfZkhl5x8PfXzARmyJ9nfhkEA9m0Al9Sf72ekDwijR 2NzOpWuC+3wb89tOLRZYvgJ+U2B/X2OrYC7AT8fN7OlyJXlZkw90kWEOXK73/QZI1URc HM++0SgvvMmtILUWRCLANT4DTT/lRJuHH/V/G9t0mShp7lrTi0jAewZLVTAncZQyvw0k R4sg== 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=uB3llXnK0KYLYYhpTualwjpRdRLy8b7Ts3GeCKJRb+E=; b=PJBBt8DBobslfFwcdQLrbDVbQs4SYVV4x7VsPeQB0Da3R+XSZ2O8nzjdD8nCFctKFY I7OwWG6YD5JcIqYNl18nMZxVOdFv1EIF/cmR8DF1fVoitG1BIu8qKZJf0J+fdkMwDZmt 3n7CkEh70phxW9xU3EP1s1eSbTn1Gn4IZV5Sw/R/azJrHTP84p47vHUV84I2WN1CdZdN mffzI3sCdFMTxPqv7lfPC1jnX3WkRTGYy5lD/xGMtV0PzizMGQjCHifbK2hoMcV9XGD3 rhK133YXuj+plxKwd6YfjGTXCcd+S2sbdgBYHJe+dB+81zd3YrCFhV9z0t+86ZUUx9bB ygbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=JwS15yad; 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 h30-20020a63211e000000b0045a07a7c790si3281283pgh.740.2022.10.06.04.06.29; Thu, 06 Oct 2022 04:06:43 -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=@denx.de header.s=phobos-20191101 header.b=JwS15yad; 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 S231414AbiJFLFX (ORCPT + 99 others); Thu, 6 Oct 2022 07:05:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231318AbiJFLFN (ORCPT ); Thu, 6 Oct 2022 07:05:13 -0400 Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 333673FD65; Thu, 6 Oct 2022 04:05:12 -0700 (PDT) Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 13B9284940; Thu, 6 Oct 2022 13:05:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1665054310; bh=uB3llXnK0KYLYYhpTualwjpRdRLy8b7Ts3GeCKJRb+E=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=JwS15yadaMbolc4mFfxB7s2jNP+Lhr5urPPF+CnPRGcfEmnCpmG2NDf4vUN5FeKij l5CvODJ8va4xbM75MvHU6R2KYGnJ81J+7AqGDmgRiEmyh/DUsy+qUxgEKJ7nmA0Ecf XeXQ6SbcVQTAWEJ7jlkA3kyjfqdKDqncGkVyEmunAbFIuKaCDbrNIZ8ygEJt6rOa/d 4td8/gMzafgxfpe+vFyajFDMOpRip14h5OwGwv6XRnB0MvxwpiuuJSPsYBeTrUzQo5 LnNij59bho/H57Ky82T13yzLjJbkT+F5bOO/JDifyjyS8q9Vk3hHaRqd8s+Php9ayv d/hxmljzpPF2w== Message-ID: Date: Thu, 6 Oct 2022 13:05:08 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [RFC PATCH 0/2] Propose critical clocks Content-Language: en-US To: Stephen Boyd , Marco Felsch , abel.vesa@linaro.org, abelvesa@kernel.org, festevam@gmail.com, kernel@pengutronix.de, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, robh+dt@kernel.org, s.hauer@pengutronix.de, shawnguo@kernel.org Cc: Peng Fan , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com References: <20220913102141.971148-1-m.felsch@pengutronix.de> <20221005082348.v43xbjrhbdlbaohv@pengutronix.de> <20221005230609.5BA04C433D6@smtp.kernel.org> From: Marek Vasut In-Reply-To: <20221005230609.5BA04C433D6@smtp.kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean X-Spam-Status: No, score=-5.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, 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 On 10/6/22 01:06, Stephen Boyd wrote: > Quoting Marco Felsch (2022-10-05 01:23:48) >> Hi Stephen, Michael, >> >> I know it is a busy time right now, but maybe you have a few minutes for >> this RFC. I know it is incomplete, but the interessting part is there >> and it would fix a real issue we encountered on the imx8mm-evk's. The i.MX8M hang when using 32kHz supplied by PMIC is solved by modeling the clock in DT correctly, see: https://lore.kernel.org/all/20220924174603.458956-1-marex@denx.de/ > There's another approach by Marek[1]. Can you work together on a > solution? I think we should step away from trying to make the critical > flag work during clk registration, and turn on the clk during provider > registration instead. So that would work like the qualcomm-specific 'protected-clock' property? I really want to avoid such clock-driver specific hacks which are poorly or inconsistently supported. This critical-clock should be a generic solution and that should be in clock core. > That hopefully makes it simpler. We can keep the > clk flag of course, so that the clk can't be turned off, but otherwise > we shouldn't need to make registration path check for the property. > > [1] https://lore.kernel.org/all/20220924174517.458657-1-marex@denx.de/