diff options
author | Jinjie Ruan <ruanjinjie@huawei.com> | 2024-09-30 17:19:13 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-12-09 10:41:06 +0100 |
commit | b2529be317f8879fc5b6b8341db37ab58e90d017 (patch) | |
tree | 85d6a6d5c6b7fd4dc051df962bad85582267c1d8 /drivers/pci/controller/dwc/pci-layerscape.c | |
parent | 7491d6255659bb194a8d58d3d38e300e9c8d4252 (diff) |
i3c: master: svc: Fix pm_runtime_set_suspended() with runtime pm enabled
commit 18599e93e4e814ce146186026c6abf83c14d5798 upstream.
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.
Cc: stable@vger.kernel.org # v5.17
Fixes: 05be23ef78f7 ("i3c: master: svc: add runtime pm support")
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Link: https://lore.kernel.org/r/20240930091913.2545510-1-ruanjinjie@huawei.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/pci/controller/dwc/pci-layerscape.c')
0 files changed, 0 insertions, 0 deletions