From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1A48C432BE for ; Thu, 5 Aug 2021 13:10:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CAABF6113C for ; Thu, 5 Aug 2021 13:10:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241589AbhHENKQ (ORCPT ); Thu, 5 Aug 2021 09:10:16 -0400 Received: from foss.arm.com ([217.140.110.172]:45322 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240055AbhHENKP (ORCPT ); Thu, 5 Aug 2021 09:10:15 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 967CC1042; Thu, 5 Aug 2021 06:10:00 -0700 (PDT) Received: from e123427-lin.arm.com (unknown [10.57.41.33]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 11E553F719; Thu, 5 Aug 2021 06:09:58 -0700 (PDT) From: Lorenzo Pieralisi To: kjlu@umn.edu, Dinghao Liu Cc: Lorenzo Pieralisi , linux-renesas-soc@vger.kernel.org, Rob Herring , Bjorn Helgaas , Marek Vasut , linux-kernel@vger.kernel.org, Yoshihiro Shimoda , linux-pci@vger.kernel.org Subject: Re: [PATCH] PCI: rcar: Fix runtime PM imbalance in rcar_pcie_ep_probe Date: Thu, 5 Aug 2021 14:09:52 +0100 Message-Id: <162816897692.18338.7803269041100813329.b4-ty@arm.com> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20210408072402.15069-1-dinghao.liu@zju.edu.cn> References: <20210408072402.15069-1-dinghao.liu@zju.edu.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 8 Apr 2021 15:24:02 +0800, Dinghao Liu wrote: > pm_runtime_get_sync() will increase the runtime PM counter > even it returns an error. Thus a pairing decrement is needed > to prevent refcount leak. Fix this by replacing this API with > pm_runtime_resume_and_get(), which will not change the runtime > PM counter on error. Applied to pci/rcar, thanks! [1/1] PCI: rcar: Fix runtime PM imbalance in rcar_pcie_ep_probe() https://git.kernel.org/lpieralisi/pci/c/1e29cd9983 Thanks, Lorenzo