LF-4174 i2c: imx-lpi2c: fix runtime pm issue when defer probe occurs
When the defer probe occurs, the pm_runtime_put() used before may cause runtime pm to be disabled before clks of device truly closed. So use pm_runtime_put_sync() in the error path to suspend it immediately and put pm_runtime_disable() to the last. Signed-off-by:Clark Wang <xiaoning.wang@nxp.com> Reviewed-by:
Jun Li <jun.li@nxp.com> Reviewed-by:
Haibo Chen <haibo.chen@nxp.com>
Please register or sign in to comment