Commits
Dong Aisheng committed a4c08f327f4
i2c: imx: fix system hang due to access i2c registers without clock Currently, i2c_imx_bus_busy in i2c_imx_xfer is called before pm_runtime_get which means the clocks are still not enabled. This will cause a hang on IMX as IMX requires accessing registers with clocks. So let's change the order to ensure the clocks are enabled before accessing registers. This is also a more safe way to access registers, suppose shouldn't affect other platforms. Fixes: 4a6ebf1c125c ("i2c: imx: add workaround for erratum ERR010027") Reviewed-by: Biwen Li <biwen.li@nxp.com> Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>