Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2290676rwr; Fri, 21 Apr 2023 07:04:52 -0700 (PDT) X-Google-Smtp-Source: AKy350anVYPqxwdEvSmisihPjHw/D7WX/ppsjleuv2EEEkzU4Prd4u+qUhNQ/JTW5D7T0c2dzJ9n X-Received: by 2002:a25:26c6:0:b0:b8f:523f:3d0c with SMTP id m189-20020a2526c6000000b00b8f523f3d0cmr4662202ybm.4.1682085891547; Fri, 21 Apr 2023 07:04:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682085891; cv=none; d=google.com; s=arc-20160816; b=fvGJXlIuwD1sU8l9r6isIceSa2jK2y4AUYMsvVtE7+hRg2ttbN+zv4ytu7Rn1hLHtH 9pJfo/mITZSGvF7hJim/pmYtmImKxIG+Fse+pghLDXZmP3SPbXznM4XvIv5xQgC2ck6x 68cGwGs96YuPs9nu4gPmm4wrj7JId1T2hAoAvdXDPYmUhGlxvJh7jlFHXDQ16xCC+dMS qjQxs5MZ9NbLNeIhFYc+pFZsEE/T60Y/9GNz5EKlmRJlnfSnEhE9Massp64alZSvAesN v54U8a6Abe1Nnx853JWCWOZxqqWPfNxrptuyheFwg1p6ElLFRtNNFaiVaOCVRWVUqucC 7MqQ== 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; bh=wuYx9I8s7jEQ24stAY85PZROgetrW3JX9ZYv4+deZgY=; b=KnLLO7gidUA+bWPFShP9WRDNg1XiuPC+ZQOoQRkbHOwNQ65b1p5W2bqQZNTjLVqCHC Bw8OQnCA1+0N1YPQKVwvr1T5k23Xe4kfg4DkgfkweGYLgWp7UXw/OBbOh5gmfWIqDwRT 6U6+paChhxKNOLHRoQDkImqbC/gsYKWOjv7SgMy6zwO4HbdqsubDq/Ama05adhf5rYbI HAR+N1UjDLl85VtyqELdz78T6llhz0b5mOdf4C+ACd/67zfI29cBAPrYJMvTY7K4IdB2 MZbRFyzIluwxhKIpD8txho/nKdONiSpHht6y1ZHl10V8j52NNoT8b53xbfmksaNndSB5 KY1g== ARC-Authentication-Results: i=1; mx.google.com; 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 x2-20020ab07102000000b007660078cbdfsi983473uan.204.2023.04.21.07.04.08; Fri, 21 Apr 2023 07:04:51 -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; 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 S231936AbjDUOAL (ORCPT + 99 others); Fri, 21 Apr 2023 10:00:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232053AbjDUOAG (ORCPT ); Fri, 21 Apr 2023 10:00:06 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E30310DB for ; Fri, 21 Apr 2023 07:00:05 -0700 (PDT) Received: from moin.white.stw.pengutronix.de ([2a0a:edc0:0:b01:1d::7b] helo=bjornoya.blackshift.org) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pprIo-0005xu-Ob; Fri, 21 Apr 2023 15:59:54 +0200 Received: from pengutronix.de (unknown [172.20.34.65]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: mkl-all@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id 54D181B4D67; Fri, 21 Apr 2023 13:59:53 +0000 (UTC) Date: Fri, 21 Apr 2023 15:59:52 +0200 From: Marc Kleine-Budde To: Alexander Stein Cc: NXP Linux Team , "A. Sverdlin" , Dong Aisheng , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] i2c: lpi2c: cache peripheral clock rate Message-ID: <20230421-kinfolk-glancing-e185fd9c47b4-mkl@pengutronix.de> References: <20230310130815.562418-1-alexander.sverdlin@siemens.com> <9272339.EvYhyI6sBW@steina-w> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ixwc7u7twriofslc" Content-Disposition: inline In-Reply-To: <9272339.EvYhyI6sBW@steina-w> X-SA-Exim-Connect-IP: 2a0a:edc0:0:b01:1d::7b X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,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 --ixwc7u7twriofslc Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 21.04.2023 15:48:59, Alexander Stein wrote: [...] > Now lpi2c_runtime_resume will call into clk_prepare() which also calls=20 > clk_prepare_lock() (identical to clk_get_rate). IIRC this is a general problem^w limitation of the clock framework, clock providers cannot use clocks themselves in certain callback, e.g. set_rate. Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung N=C3=BCrnberg | Phone: +49-5121-206917-129 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 | --ixwc7u7twriofslc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEDs2BvajyNKlf9TJQvlAcSiqKBOgFAmRCltUACgkQvlAcSiqK BOjeTAf+MQiPaYHFR1uULcuIXbV2XHiPm53lGdm5hp9wwSK166fJ17jq6knT8epB HxkB1bn+Hl+tuF0ncFn1ip15GIlmFFxGkn/ZqAjKqC+Im0n1pFg1q5hfBx47YEZ+ X2ngxOrTelGlUZl7Aw3Q8rpia2IiLgxwArBMSOqg1B1dIAIPE9+iXuTevhONuHDy HmeJ46SsI9IBV9+za6RBW8AhSLapLybAyZ157K03G2oCEHGj3G8zB9salQDsFYfF lnCvyEDKLy1glmKBpJcCL8388/GWbiuO74ifWDAYtr67hn4TZ3BFT3ArWMTu45lG uefuUneOirrPnBQsZIDeTRUpXU2Bqg== =OK92 -----END PGP SIGNATURE----- --ixwc7u7twriofslc--