From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2BD7AC77B60 for ; Sun, 30 Apr 2023 06:59:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=MVGzPLoHnqM28hjqF/JY8tC9DKBMBShc4j1JqWV1Yuw=; b=drfK/R3MVVO2IVmr1xWrep+XCr givzVEZPRX4lnU5DPHap5MFDpCN1f8DqRZZ+xz3UGQy/Hluj4cMQkAovUle1pV9eTMR7hIPbEkZo9 txL2/C9v7M1pB243LB3QWrED+2aQyy2KqIFTcsvXRpkLRmUjhg5b36MRYRZedPRemdF4K4+JCuCP1 JnY46JKtq/idf4RMj8sIv9TRzFCdcBSK8KTJX4VJf2X1bJcvChDdcCiiUeUqRFG1IzjoyyGl9w4bX mJPkSd6G9d87vbWsNaIux+znD/s079RXgDIK7kcirXXxe+CJbXb4uk/z88sCT5F5uPdRl5Lv62McD HgFYh5/w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pt10e-00Dgdr-2J; Sun, 30 Apr 2023 06:58:12 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pt10c-00DgdR-0A for linux-arm-kernel@lists.infradead.org; Sun, 30 Apr 2023 06:58:11 +0000 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 7ED0360AE9; Sun, 30 Apr 2023 06:58:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45042C433EF; Sun, 30 Apr 2023 06:58:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682837888; bh=0BFyDemOuVrbku8aZqdJCA1+RRsfz1qz7J50avUanBY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Or2VwbmTTWO5hm7UhV15Zt1ATx6EeB8v9qNWSSMfACMI8/xhoQN+czmNfBwgVA4d5 jBCoIRfrloYLhVAmZpt5hS3JzKEKu0Lvvtr31svxeFcx8Lx74/Xiz3iXePs4TovK8K cF+s//p3ApSit3KL0wwHozTbymSEB7Lej0PUYW2mCKBhpQ9jls27kSg95mJM1hcwsn NY4vHUafXcuKrNoOHjgBrWlYGRofLyiDIT4ViFnud0tXOUVZXTbIQ74FVLs5uHaWNo 61t9mZGKv9DtesKXBvi/bMqLUYE8GoOTvdGo5Hzk8tzxDJN0eGfMFKnLlEQEzxkwhu l7aVwjFt0idnQ== Date: Sun, 30 Apr 2023 08:58:05 +0200 From: Wolfram Sang To: Alexander Stein Cc: Dong Aisheng , Shawn Guo , Sascha Hauer , Fabio Estevam , Pengutronix Kernel Team , NXP Linux Team , linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, "Sverdlin, Alexander" Subject: Re: [PATCH 1/1] i2c: imx-lpi2c: avoid taking clk_prepare mutex in PM callbacks Message-ID: Mail-Followup-To: Wolfram Sang , Alexander Stein , Dong Aisheng , Shawn Guo , Sascha Hauer , Fabio Estevam , Pengutronix Kernel Team , NXP Linux Team , linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, "Sverdlin, Alexander" References: <20230424080627.20564-1-alexander.stein@ew.tq-group.com> MIME-Version: 1.0 In-Reply-To: <20230424080627.20564-1-alexander.stein@ew.tq-group.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230429_235810_128964_13EED48A X-CRM114-Status: GOOD ( 12.72 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============7359877315671341936==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============7359877315671341936== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="VPdEtusa+1YW2EIA" Content-Disposition: inline --VPdEtusa+1YW2EIA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 24, 2023 at 10:06:27AM +0200, Alexander Stein wrote: > This is unsafe, as the runtime PM callbacks are called from the PM > workqueue, so this may deadlock when handling an i2c attached clock, > which may already hold the clk_prepare mutex from another context. >=20 > Signed-off-by: Alexander Stein Applied to for-current, thanks! --VPdEtusa+1YW2EIA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmROEX0ACgkQFA3kzBSg Kbb+Lw//cve88MxYHVcaR7hnR15CwL8jiiiS1t1WhSumB4EyXTf0koheS4LMbKcN 7+vpyI7dZ+OIvWxZbfjo4gJ62RWRHWTOMnlENa13bP+z7JxHQvyVBhI7gxaoIXza WslFwLb+OnqkvJ9r7KKVE6mRPpiJflm5p4fUqkl6NyU80lJwG4snjHBy6X+wZWWz K6qN4mvYwAhdoTeuuS3iozz4sWygt4s0JmQiLZFZK4uRo10ortRgtW85d/4af51j qEVpsCTOGyq6nO4dT8tXkhu/V9NVL4+27L5WMFwbUec3v+DWpwM6jvjP263Wqgea gY0iWmhUqLfEBHUIR8H7xlAsK3r00jN9zrQuLfZln6t0QAHDaVXWDUcfCTXc1t6+ 4Lqc7t/B1sbs7QftnbMqFF2raHLFUpXZJbaMNXicoUaBICTjQZxsZHXv57vX7RpI ARiXyqCgE+U3fVEoeNdZQEz8ZvUQhhCk3Gt9ezdJPovw0g61zOYHHk7cKzJjzTL5 UGt+qrfLcF0ImXzeHCq6EI23Pgv2wtJFSAvlIC/WzFQup1G2pAbwHXzGPcTozJcy d9IJPHqgaxGc8t/UCgdvARYwRtUBxAAtv0aWHlESSAIRaEhK2ym3Xg2M4/nzw4Hp 2+ngeyzSG0HCdwNq9Bgd/AzdWgjpKw/1FaUydPvlUsA7jfbhWrI= =frIW -----END PGP SIGNATURE----- --VPdEtusa+1YW2EIA-- --===============7359877315671341936== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============7359877315671341936==--