i2c: imx: If pm_runtime_get_sync() returned 1 device access is possible
stable inclusion from stable-v5.10.146 commit 2f58c47c36d3f13c2c7368f9fd12636a22e1101a category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I6D0VX Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=2f58c47c36d3f13c2c7368f9fd12636a22e1101a -------------------------------- [ Upstream commit 085aacaa ] pm_runtime_get_sync() returning 1 also means the device is powered. So resetting the chip registers in .remove() is possible and should be done. Reported-by:Dan Carpenter <dan.carpenter@oracle.com> Fixes: d98bdd3a ("i2c: imx: Make sure to unregister adapter on remove()") Signed-off-by:
Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Acked-by:
Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by:
Wolfram Sang <wsa@kernel.org> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Jialin Zhang <zhangjialin11@huawei.com> Reviewed-by:
Zheng Zengkai <zhengzengkai@huawei.com>
Loading
Please sign in to comment