Jinjie Ruan 67d4a70faa
spi: spi-cadence: 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: d36ccd9f7ea4 ("spi: cadence: Runtime pm adaptation")
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Link: https://patch.msgid.link/20240923040015.3009329-3-ruanjinjie@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2024-09-30 21:55:00 +01:00
..
2024-07-08 17:01:10 +01:00
2024-09-12 12:38:44 +01:00
2024-09-12 12:38:44 +01:00
2024-07-08 17:01:10 +01:00
2024-09-17 10:31:31 +02:00
2024-07-15 18:03:43 -07:00
2024-09-02 12:56:31 +01:00
2024-06-11 11:38:25 +01:00
2023-08-21 14:29:37 +01:00
2024-07-05 18:47:46 +01:00
2024-09-12 12:38:44 +01:00