Jinjie Ruan 0c8d604dea i2c: xiic: Fix pm_runtime_set_suspended() with runtime pm enabled
It is not valid to call pm_runtime_set_suspended() for devices
with runtime PM enabled because it returns -EAGAIN if it is enabled
already and working. So, call pm_runtime_disable() before to fix it.

Fixes: 36ecbcab84d0 ("i2c: xiic: Implement power management")
Cc: <stable@vger.kernel.org> # v4.6+
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
2024-09-27 11:48:21 +02:00
..
2024-09-23 14:34:19 -07:00
2024-05-13 15:56:14 +02:00
2024-09-10 00:36:49 +02:00
2024-09-11 23:32:24 +02:00
2024-09-10 00:33:52 +02:00
2024-09-10 00:33:52 +02:00
2024-09-10 00:33:52 +02:00
2024-09-23 14:34:19 -07:00
2024-09-10 00:33:52 +02:00