commit | d9a22d713acb484f9d60861598a71e28129c0afa | [log] [tgz] |
---|---|---|
author | Lucas Stach <l.stach@pengutronix.de> | Thu Mar 08 14:25:18 2018 +0100 |
committer | Wolfram Sang <wsa@the-dreams.de> | Tue Apr 03 15:29:28 2018 +0200 |
tree | 737453064662c8287cc586e7fd605917835a4ec8 | |
parent | 90ad2cbe88c22d0215225ab9594eeead0eb24fde [diff] |
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>