Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9099959pxu; Mon, 28 Dec 2020 06:38:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJzdki5Ewco3DgyyDxMO7tuXPKDtYaEfR3e9JRHfbH7BASQQNpAJVDfIkHhuMYImZ9q5G7gq X-Received: by 2002:a17:906:b1c8:: with SMTP id bv8mr42644870ejb.208.1609166304965; Mon, 28 Dec 2020 06:38:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609166304; cv=none; d=google.com; s=arc-20160816; b=vOlxQ2uHpeZrdw1QrUGR4NckPJLQOW3Gtja0KRYhjX7figP+Ymieq1I8Rj2z2yMLlW YlHyXFYX7dTUGQDE981Sxg0a33vyjchcE3xDsXSACVlUmbuprRfsREUJ5+5t8SMZXwlP TYTQSD91M8AkI83y7GsH+RYA55QSmmfM62/oygPeALa+esBx/faQbjsf0kcHLVCI6qw/ 4Ga3frG8K2JzuHng4F3XjWe9VYE+/+7YIEJGnHZRI0miw76s2mppejN89O6onKYpyHIg 2hljlFzwf4BnCHDTGa/vlFgrR6QbuEaYiTaO4oDZMycpbFwPetRWdZvuH8oh9kqjBAJ9 aSJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=cKB51AnDtc3mis0VtNhxRdRwhsrHzthSTMFNb6Oi9K8=; b=RfMBiRlm0e8bo96zleB0yWf/q7ok58Q6j7rgfWyJL7TNew+/xvd1Lu8DtPYI8lNsrH M08kWhIiS8cdAUUMm1RQs7acBhMvY77osKzOJYgf/5Wc75zruQ8Lja71cORb2Ix0DFf2 VwzgwJeYnvEzeOvuLI7s+alNXHbR7YXVM0o/m5TqPun+Sk/1WQj0zPzGBGC+4mFBYqs1 elZTXDhRH1Ee40Yf4Y4qrd5d3XkebEdOeQ5qfTcqS9KFsvR9CLPbS4WE5Eu+P6lvjhzJ ozYqHgVJKnwHhP9iun6WXk+/J3Sd5T5MW9beoIMnVC9tIMr3bWyxF0gZuf9+IyJfxd0I wd7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ksZ4gyUw; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dd25si20731624edb.438.2020.12.28.06.38.00; Mon, 28 Dec 2020 06:38:24 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ksZ4gyUw; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2504937AbgL1OdO (ORCPT + 99 others); Mon, 28 Dec 2020 09:33:14 -0500 Received: from mail.kernel.org ([198.145.29.99]:40776 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2504812AbgL1Ocs (ORCPT ); Mon, 28 Dec 2020 09:32:48 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3404D208B6; Mon, 28 Dec 2020 14:32:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609165927; bh=JTOq2aEU0ZWooTYDgXao8lvG8zqtcoMDAX26rbdrnlA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ksZ4gyUwax7bcD2QlzdQv53ZXAH/emcdtHQf5xKONxASxdCALiOo5ON/aJmbVZysk bp9Ayy8YF2m8cczwMS4R7tr4xjvk1nNaMIwJhmOw2DQUK2/jIOGbT38P1/DiFGyxh9 qi7eauZMEsygFVVinpHpEuL7+tLv0/Mfk0GgF2AM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Geert Uytterhoeven , Lad Prabhakar , Sergei Shtylyov , Krzysztof Kozlowski Subject: [PATCH 5.10 704/717] memory: renesas-rpc-if: Fix unbalanced pm_runtime_enable in rpcif_{enable,disable}_rpm Date: Mon, 28 Dec 2020 13:51:42 +0100 Message-Id: <20201228125054.715581873@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lad Prabhakar commit 61a6d854b9555b420fbfae62ef26baa8b9493b32 upstream. 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 Signed-off-by: Lad Prabhakar Reviewed-by: Sergei Shtylyov 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 Signed-off-by: Greg Kroah-Hartman --- drivers/memory/renesas-rpc-if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 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);