]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: imx: avoid taking clk_prepare mutex in PM callbacks
authorLucas Stach <l.stach@pengutronix.de>
Thu, 8 Mar 2018 13:25:18 +0000 (14:25 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 3 Apr 2018 13:29:28 +0000 (15:29 +0200)
commit09f122aa8d32ea19b2885c2fd1e8e461e0327f81
tree737453064662c8287cc586e7fd605917835a4ec8
parentc1802af665e06455532b6f52d64681e51d0c35a2
i2c: imx: avoid taking clk_prepare mutex in PM callbacks

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: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-imx.c