Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4140495rwr; Sun, 30 Apr 2023 00:47:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6NFGTtauLYyQt+dmjNDrjERTvfNSJdcq8wc633XxrFxyGRayQZ+AG2xWl0QIs/4VG0rLNE X-Received: by 2002:a17:903:41c2:b0:19a:7217:32af with SMTP id u2-20020a17090341c200b0019a721732afmr12863778ple.5.1682840847333; Sun, 30 Apr 2023 00:47:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682840847; cv=none; d=google.com; s=arc-20160816; b=yEJqlRwa80Z6+NtlpYhTkIleCYrKxHJ25PXcwn/m/PHNbrk/ayOzQ607tw2QxaLRLp r3sK3QjFe8+wDUY3VVkizTEoO+K5ZAkwjnBuLbWfY1oYspbcYqQWqVF+O/Wd+E8SIQaJ X16Lj5ttGNB5f0y98eO8AZtDojsS0ro0o1aXI10DV1txPOq28t/tAUivj+FVSQAk7NJX R52nn9X2dUpXp6Oy7pdFzskk6wftUo/4VOGnQ/x5T0tpT+BdeZaMgOtKww9rbdf2hRGl pq76tOP/xy5/2oXopDENuV5guJc5GfLXDcW1x/hN89GQNXNOCWpsWt5Bcr1ocFhTY5kc Bh7A== 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:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=nG03ZamBT2oRAqwOft9tIDjMEkOdLhGVnWdGCxwgdRs=; b=Yt752mi5NGuNywzWNH7nobasoyYKq5R2o0tWBWUoLqbe+YbsYuSzaObOHKC1+qwJGV hNlky8AvsjmD1kRk0lf0xl+dFLERGbdi6B2d01ERdDc8SKGTB+I7KUqVvTGQp4jXhvtt IGDPLyiBH3hf24Zx/hoTXsP3JN9LqGfRYF5pL8sgVmrbCHcH6Cwl29CTKjIe9QLyil+N udlolMRcP0TcrBTh2YsknlEiiO6I9VsnXCfyY6Rzq8v4yzoq7oTmpSiGhVZ1n5I+SfxR p754jLNGqg0qAaGxPQyXsPMJXGwkIRYEP5rSdv1z+qAljH8wUL3F2tQ4frCDCN0WPHQ4 b3uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VZrMtNX9; 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 l14-20020a170902f68e00b001a69d1be184si22485941plg.506.2023.04.30.00.47.06; Sun, 30 Apr 2023 00:47:27 -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=VZrMtNX9; 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 S229484AbjD3HGG (ORCPT + 99 others); Sun, 30 Apr 2023 03:06:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbjD3HGE (ORCPT ); Sun, 30 Apr 2023 03:06:04 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2727719A2; Sun, 30 Apr 2023 00:06:03 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 90E1260E08; Sun, 30 Apr 2023 07:06:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44334C433EF; Sun, 30 Apr 2023 07:05:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682838360; bh=nG03ZamBT2oRAqwOft9tIDjMEkOdLhGVnWdGCxwgdRs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VZrMtNX9u1uJcw5MzqcGkTp/yaBXacMDOtLb/kZrs/OY4hA3Ip9PgnYkVc7R9WTZB b0rPz8SksH6ZH6MI9uUDJ+pqV+MkkawkubS2YHMwAsw/Nd/bH+W2Ou1oNdmIo21jM/ zdA6glIpK2ExayWcszoeHBtpck2Juz1T+2nIKUYF4C4dVkiQngyufoG4QJeaNmxHLO JHzVytPBD/kGVPBir8YTVS+kuILcRAT5QLQJmRyxXI+4aUOthRGo102qgDtE0HYiNn whWuSaf2v4EksGJzJgvYFTn8QNaFZkPM+zecpnBVWzqfRpW55oSU1FAyOZKefsYDmc tDL790jpryFtA== Date: Sun, 30 Apr 2023 09:05:55 +0200 From: Wolfram Sang To: Alexander Stein Cc: Marc Kleine-Budde , 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: Mail-Followup-To: Wolfram Sang , Alexander Stein , Marc Kleine-Budde , 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 References: <20230310130815.562418-1-alexander.sverdlin@siemens.com> <9272339.EvYhyI6sBW@steina-w> <20230421-kinfolk-glancing-e185fd9c47b4-mkl@pengutronix.de> <4797405.GXAFRqVoOG@steina-w> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="0V48hNfsy+qdyek6" Content-Disposition: inline In-Reply-To: <4797405.GXAFRqVoOG@steina-w> X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 --0V48hNfsy+qdyek6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > > 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. >=20 > Well, that's essentially impossible when this clock provider is attached = via=20 > i2c. i2c transfers potentially need to change or prepare clocks. So, as I get it, this is not a specific lpi2c problem but affecting any I2C controller driver which uses get_rate() to setup a transfer to a remote I2C clock provider? And this lockdep warning is a false-positive? --0V48hNfsy+qdyek6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmROE1MACgkQFA3kzBSg KbY9IhAAgLo8PSbFxem7+yW32eqHDssVomd/c07FPtFDLUi2XW1n/roLDv0Q1BWa NXHyl6RkiW8k25kzh2Q9nMLKvF6NnZKn/yynAIZnAKPK2Yly0V6oPAjA5Wlbovr5 q18FajnSElq9MZBXgmQSUrI/YtuFpDTxSYUgv6yWKqYMt4Z4u05qbcncNe/CTPH9 7MsV+PXRozwQbA2AHZWSFRY6vVTFISFtflf8BSP6JI3WOynUquZCeEzbSDQ/1Q7d Uw0dolCi3oQTS/7z82fZsHHfeZlyg0q+kaBC7NyHtGUhNF0LdrriJtLkzog5AS8H 3QBa8UvborMCh1ytGb6nU+m1SmnUzYTXkKhz+gScGYuV6puq5BJBC3zj8rFQsyqP Iz7AoDPTsHtWffVsz1CsakqC0ioXxgD2T7SSMMXKugI7Gt99feVx1Ojgu+AT7fCE Q+Yi+XiXggjvlnTwg6YP0HtC07JN8v4z+4/WeOANcTT3ZausYyxoUmj6YUE3eJXv M4jVjGecVKfhdblXpplgG7W6zU3pEcJ6FMBWkwT3/vu7dUtAcZFbdIrMmC3HlrvP PPaGllJEqlgbFCJUU4BDjF7TQ1yY204FRmNIm+nfSOqMcrTkNMF/jo9/j6FGrz4O YSeQR7br6xCfGO+yxCEetsB1BWvQc6Ebw+xgX4N3uYSekN/HhyM= =YJB/ -----END PGP SIGNATURE----- --0V48hNfsy+qdyek6--