memory: renesas-rpc-if: Fix unbalanced pm_runtime_enable in rpcif_{enable,disable...
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Thu, 26 Nov 2020 19:11:43 +0000 (19:11 +0000)
committerKrzysztof Kozlowski <krzk@kernel.org>
Sat, 28 Nov 2020 11:33:19 +0000 (12:33 +0100)
rpcif_enable_rpm calls pm_runtime_enable, so rpcif_disable_rpm needs to
call pm_runtime_disable and not pm_runtime_put_sync.

Fixes: ca7d8b980b67f ("memory: add Renesas RPC-IF driver")
Reported-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Sergei Shtylyov <sergei.shtylyov@gmail.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20201126191146.8753-3-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
drivers/memory/renesas-rpc-if.c

index 69f2e2b4cd505c64066ba8344cb050b09740c32c..a8d0ba368625e0abaf2f3c18d2ec118c93f6fa32 100644 (file)
@@ -212,7 +212,7 @@ EXPORT_SYMBOL(rpcif_enable_rpm);
 
 void rpcif_disable_rpm(struct rpcif *rpc)
 {
-       pm_runtime_put_sync(rpc->dev);
+       pm_runtime_disable(rpc->dev);
 }
 EXPORT_SYMBOL(rpcif_disable_rpm);