[PATCH 1/1] i2c: imx-lpi2c: avoid taking clk_prepare mutex in PM callbacks

Wolfram Sang wsa at kernel.org
Sat Apr 29 23:58:05 PDT 2023


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.
> 
> Signed-off-by: Alexander Stein <alexander.stein at ew.tq-group.com>

Applied to for-current, thanks!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20230430/c4e0f4ba/attachment.sig>


More information about the linux-arm-kernel mailing list