Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp158464rwb; Wed, 5 Oct 2022 16:30:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6U7PEXjVIJTVLPb8+zFkP90xNCRibQR6gh34z7vHuQkkQ4/n7AXxc8Pdu4recx+bl37WVL X-Received: by 2002:a17:902:b601:b0:17a:695:b5bf with SMTP id b1-20020a170902b60100b0017a0695b5bfmr1724876pls.35.1665012635014; Wed, 05 Oct 2022 16:30:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665012635; cv=none; d=google.com; s=arc-20160816; b=Gp+gQfGeokv0lm8SSfB0wDJwWZXqLfFzIb5r6QTFGsQZURwsQBNlpil/OTGbkHxd1s bn3Kx+kVkmVDoeoTl5N1RNciz5AKBYuIW0dHlDr6/1u30rSr6R3xk6jICBGT47oAfGDg eabxiF+UFD9FHC7fXNBa9Zwkoa4zmNBeFh+8tiLWvtkh43Rz413YCGCoLke3jPNFsNtP F7QxM5yNF/C+6sPGlL0hhTVxBal+kKBE1NeaaiSXADmxnlrOAyp33u/RxaJu/qds86lO CGIl4jAahl0VCkZRqo6F+1DyUFNoR8ekil+T7F64BnxMSjCv6dG95AJoqCvqXKJ137ca U+ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=sId7vCZ/BscO4odCRyqbx9YmALMG5hZdxlSUO6EQ//k=; b=IUv+yvKNyxTXTt9zQDnnNiUswP4X486OCyJGFT6fHvMhUVtkmSRMXwTiTGVqSbB9EK cauHu0P+qqEIkGtqOcgvnL9dgdQQFpoCfsyF3dbDH2imRMxdg+18JEtBTtAVMtOb95n9 osWlHQrZsus8sc/amBl/sM3M4eJzcjYXwuFKWo+kgRFmLYNTLzSi0aobZ6PHF1HULpna YuWcdwcBrIp1XLXNcoDtuBJT1LHecGJQeeSjV5AkzIszzbwsi7UN4COytS/xdo+cFpP6 4XSCZhJ3En4QYriqXtJiP4FyZtU1u7wslJOS6fYzOr4j7m/A5utS/eUZZYIQkVijaIev Lrbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g0SA5pkg; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p63-20020a634242000000b00439dcdd3cfdsi19451928pga.825.2022.10.05.16.30.20; Wed, 05 Oct 2022 16:30:34 -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=@kernel.org header.s=k20201202 header.b=g0SA5pkg; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229687AbiJEXGP (ORCPT + 99 others); Wed, 5 Oct 2022 19:06:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbiJEXGM (ORCPT ); Wed, 5 Oct 2022 19:06:12 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BAD58559B; Wed, 5 Oct 2022 16:06:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C49B0B81F7E; Wed, 5 Oct 2022 23:06:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5BA04C433D6; Wed, 5 Oct 2022 23:06:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665011169; bh=sId7vCZ/BscO4odCRyqbx9YmALMG5hZdxlSUO6EQ//k=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=g0SA5pkg14SPD2N4jgjqhXZIKasfHYgz2p6Jivm4cuDWdSsvZbwtySQtbDTvgmkFk V5b3vcoaT+9b53lICzCBJhsASgNwGkFt1hTB7kyqDVOsaGtlI8mfBpj+bBIyptBFO0 lKSiUnQQDJzLiLpKAvmUBvXEbB2CeKx3Eo+jEib1rn6eoxZYItSWBYSPp7y9HPvWgP uY19coLL0VAnTB6zu+Ft9/81o+baIY4Wkt4+yHOlBC+wiDH71df43M4qRt0F5WK5pX sMsjDMwQ898nucgBzM2GZaR5KQV9GhZtJOFm010ZYJ8g2zphx6ZkgMOEK7vM/InsD1 Hgvi4olUjv7zQ== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20221005082348.v43xbjrhbdlbaohv@pengutronix.de> References: <20220913102141.971148-1-m.felsch@pengutronix.de> <20221005082348.v43xbjrhbdlbaohv@pengutronix.de> Subject: Re: [RFC PATCH 0/2] Propose critical clocks From: Stephen Boyd Cc: Peng Fan , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com, Marek Vasut To: 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 Date: Wed, 05 Oct 2022 16:06:07 -0700 User-Agent: alot/0.10 Message-Id: <20221005230609.5BA04C433D6@smtp.kernel.org> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Quoting Marco Felsch (2022-10-05 01:23:48) > Hi Stephen, Michael, >=20 > 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. >=20 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. 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/