From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796151499; b=ZI+qg4GeNIqHg8PYZ/e8fgwX5PvUPsXnly9ZhCLcIKLjKxeJMOoeG27pKaae2JA2E10H bOIUp38+h/qG2n7vb6nokxQNrRBdFo+EIPsXUqjJE60rGTOserr6B+E/nePQxxhnHfxgI WO6h5nxzKGGyw7LHSQMYfoly/OgVVWtK6nk8U14j/lHxT2YIGFar2XDEcyQewlc2Ao8s8 VJT1zG8oKcosib5Nk+qDRX+vteqO6nmm2UqmIboVjwq/71UMjfpIV5K4in1m/9OIKEY/5 Bl0P4Hx1dcu6Ur0Hx04ko1v37aw9La5fhaUHptRUUVFeCqMMfh0KigA8JUxaz3MQEuQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796151499; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=U8p6owqpKfhfHoddTLBqvpMGgMt086BDtr0gV4m09us=; b=qItwrFZqwB4ZORpfeyteUbiHZ0HWF6FF7gqBU/0BM5E1ZHybxx2LnSxNEHzz0thnmyvV sd2iN5bX37ijhnpXU9qEIH10w0nCrDtVlMI3SuvoLFbjzCvMgIl/tY2UHp1U/fYH7Dsgu oAyKp+0UYBHqZEI/dmzQ5vZ4lhrhrEQ6n73KSfQSvpk55qJiu6GGmVegnzQPB6io4R8IO oMTg+KLD1Gwcy2uvzrS1AE8Gttf8VgSPoKPjgX/+xy5b6NXFd2F35lILYWTz7iImAMaY+ IVbExNPTxkT3bVzMvj+ZeOGjlv1LEc39RyBmwm/6w1WI7iHzGdPzdjVlzt2S4TeC2+A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=CwfGPZiB; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 95153606A31A; Tue, 1 Dec 2026 18:58:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=CwfGPZiB Received: by smtp.kernel.org (Postfix) with ESMTPSA id B03AF1F000C1; Tue, 1 Dec 2026 18:58:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796151499; bh=U8p6owqpKfhfHoddTLBqvpMGgMt086BDtr0gV4m09us=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=CwfGPZiBmQL1AG67lX6dbVik9Twkmy/g/zQ4UKfhkokLjx/BaTOuzuTa9XM4yDMWN 1TOtF+LBKi9Hz4sidwwagvzBhLPKUkKdK5lleMXqR5QqqE77RG9ja8tQ1E8ssjOz4W OJCoFeLjXdIVNDoVl0SgFvBbdvD16ZXK1fSfOFX1TaRtjxLrNT/m4rTMSlnM/FbJk7 RFTMfxCGOx165h2zA2vpreG0voP5p8eIsRZo3FC9oFASjwR4k+4UfD1J1x9/PjkPLI +1jHfBHfExM5Hbu8xyzolaOrW5gZPXWNt7hTO1awrOI55aGcCCIatQWLE0cuFbX1ST CakfX88YhUZJw== Date: Tue, 1 Dec 2026 18:58:15 +0000 From: Conor Dooley To: Jiawen Liu <1298662399@qq.com> Cc: Conor Dooley , Daire McNamara , Andi Shyti , linux-riscv@lists.infradead.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] i2c: microchip-corei2c: remove clients before disabling clock Message-ID: <20261201-pastime-spectator-b8f82c0ab40d@spud> References: X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="HAVNLkhwGOZRvivW" Content-Disposition: inline In-Reply-To: --HAVNLkhwGOZRvivW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Nov 29, 2026 at 04:49:59PM +0400, Jiawen Liu wrote: > mchp_corei2c_remove() disables the controller clock before removing the > adapter. Adapter deletion synchronously invokes bound client remove > callbacks, and those callbacks can issue transfers through their existing > client handle. >=20 > Keep the controller clock enabled while clients are removed, and disable > it after client teardown has completed. >=20 > Fixes: 64a6f1c4987e ("i2c: add support for microchip fpga i2c controllers= ") > Signed-off-by: Jiawen Liu <1298662399@qq.com> Acked-by: Conor Dooley Cheers, Conor. > --- > drivers/i2c/busses/i2c-microchip-corei2c.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/i2c/busses/i2c-microchip-corei2c.c b/drivers/i2c/bus= ses/i2c-microchip-corei2c.c > index e5fa28f20228c..7e772893f4a4b 100644 > --- a/drivers/i2c/busses/i2c-microchip-corei2c.c > +++ b/drivers/i2c/busses/i2c-microchip-corei2c.c > @@ -620,8 +620,8 @@ static void mchp_corei2c_remove(struct platform_devic= e *pdev) > { > struct mchp_corei2c_dev *idev =3D platform_get_drvdata(pdev); > =20 > - clk_disable_unprepare(idev->i2c_clk); > i2c_del_adapter(&idev->adapter); > + clk_disable_unprepare(idev->i2c_clk); > } > =20 > static const struct of_device_id mchp_corei2c_of_match[] =3D { > --=20 > 2.34.1 >=20 --HAVNLkhwGOZRvivW Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCaw8YxwAKCRB4tDGHoIJi 0uO/AQDcN+c50lvi64pYTXok0BSUtHW3wPanqt9fUu0hNtW4OAEA5Jd5tXS1SoeH b4TU3/NOuDMKBgeDrPsOvEFKffNJwgI= =z1sl -----END PGP SIGNATURE----- --HAVNLkhwGOZRvivW--