Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1155763pxu; Fri, 27 Nov 2020 00:41:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJzOomhY2WNeL072VmlTPXvZMf7OiMpI8Yau1pmhji1W3W80HTyMxpf89kfK0w5vklLhBdvz X-Received: by 2002:a17:907:2179:: with SMTP id rl25mr1612927ejb.470.1606466482822; Fri, 27 Nov 2020 00:41:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606466482; cv=none; d=google.com; s=arc-20160816; b=zoS5KtmUM0aZ8fner0jGtlVg11/jQFHDom8Di8xzHOTLJGRZBgNxqJOZ8aXOXxRNXA 76iSXr14hADz55Z/Nz9XpiF9QGV7nAhuAjLiAzOtxQwl2Uad91YrUOyy2AHD0oPlIKTS PudL4AjB/6Nl4W5Wk7z699EtnsQA7YxXORYd5TuqNRDWasCpuClmxEX5tH9VzpqzE3Cz uBWWVHo2K26TsTYSBgteeTeb/llQoqrc/MCom14hCMfmsXSWY7RuU/CxRbgADJrnGTts WT5afm+tQeiYDwoqjKVMNN5fRxFb1EqeBQOB4DrBkPIn6eZmXdk+91OdfMLs6lurRoUB 2FUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=+LPmuwRflktN0mO3BPuV9rj3yBLc+haTz4VUyLlbrQ8=; b=D94Vu2Osy3jRfEAK+6tmsk5agLaOdP+gKtqpW0l0RkiC7jucyiYycMpfbsk082pw91 Hwrro983uICX4FRKftaAYFBZB5zz5F4YVBZZBoFOgdPuuYjbC99kHfUvzOCIfqzBIQ97 vfRybfMd7H/zguzIZpRrw30lAq13yOwgc1V/LrA1gPxaLMh6omeCT1nZ76f0bdgg4a2g QWjL6obG6kTLG198bpp6I7zX6/o+Jy7fmQbwb+VQAy+7+YIk9uCQ3SsOeNphal3u42X8 vzybZ0+IRfKLdp6L7cHnjqeqFipHn+Ao7lcFvuSPkSYKSh5i+sHrjX2FiO42jQSQvZHd 3K/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a11si4524428ejd.391.2020.11.27.00.41.00; Fri, 27 Nov 2020 00:41:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405215AbgKZTL7 (ORCPT + 99 others); Thu, 26 Nov 2020 14:11:59 -0500 Received: from relmlor2.renesas.com ([210.160.252.172]:38352 "EHLO relmlie6.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2405176AbgKZTL7 (ORCPT ); Thu, 26 Nov 2020 14:11:59 -0500 X-IronPort-AV: E=Sophos;i="5.78,372,1599490800"; d="scan'208";a="63792998" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 27 Nov 2020 04:11:58 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 509E740F8AE0; Fri, 27 Nov 2020 04:11:56 +0900 (JST) From: Lad Prabhakar To: Sergei Shtylyov , Krzysztof Kozlowski , Philipp Zabel , Jiri Kosina , Mark Brown , linux-renesas-soc@vger.kernel.org, Pavel Machek , Geert Uytterhoeven Cc: linux-kernel@vger.kernel.org, Prabhakar , Lad Prabhakar , stable@vger.kernel.org Subject: [PATCH v2 2/5] memory: renesas-rpc-if: Fix unbalanced pm_runtime_enable in rpcif_{enable,disable}_rpm Date: Thu, 26 Nov 2020 19:11:43 +0000 Message-Id: <20201126191146.8753-3-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201126191146.8753-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20201126191146.8753-1-prabhakar.mahadev-lad.rj@bp.renesas.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: Reported-by: Geert Uytterhoeven Signed-off-by: Lad Prabhakar Cc: stable@vger.kernel.org --- drivers/memory/renesas-rpc-if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/memory/renesas-rpc-if.c b/drivers/memory/renesas-rpc-if.c index 69f2e2b4cd50..a8d0ba368625 100644 --- a/drivers/memory/renesas-rpc-if.c +++ b/drivers/memory/renesas-rpc-if.c @@ -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); -- 2.25.1