Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3709469pxj; Mon, 21 Jun 2021 04:59:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLqOXFukcxyuoeGPVGWs5nJGQTpYRGPGz+R+lUt/3w9EFMCzRN3qaG8KRjWqgLzmzAa+Xl X-Received: by 2002:a17:906:8a88:: with SMTP id mu8mr15330117ejc.278.1624276785397; Mon, 21 Jun 2021 04:59:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624276785; cv=none; d=google.com; s=arc-20160816; b=ogCJVsZS5VuENejq54pB7WbTICiHkOUIT1o7KiieuvA3GpPEYqbAu69wao2RSoCqZY nA9l92+euyeWxJLirNOxDwtpnF8/vJQ4dPu3fD9j5hWR+61BCWICCqBQEqUJepwnO+7r 7kJ1t+SCIq2rDkd0DSF4j8QQ+sbZzslkZ5Dubqsdf5dIgPtXZjTbEWTLFEhR3KERDsxv AYmTvYIY7twXSuKfqnbZJ7KZEzkESFcYQ7AX5D+D5DT3fTI0EAr/K7oltV9Q2ayfnFMQ OaAcM7w5UWPcWlDK778dO+A9lA7X64zQo41VbJZ8bYxc73myWPvLh/SQpTeCWZPkup/k FBSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=JvkNDTjahjImKj3duGEUeFWayKv7PwXaOqSSyc1OVNU=; b=XSLA5w7sUCGaNuJV3ISH5wS5aDa2PplRARCvpWcHbYV/oIyrZXxeF2OkiOZfQwJVDY rAL1OS/k/0xTt31LKQCBX+P2Md1UqMr3ksex4gwmkmGWMXWMcsLANtk//M65JwcqkDmc /ePyTL8kOIPxmXUhMZx8SRhHOVCEzqWSgm7hdzpcgpo3DysupU2SHzNXalBwjIqgqHIT hNre0y3oyFC/lYx3z05/ykBk75dT8zm3S2z8d9PnCrYDAmad1BfLhijsCxt9QNXIlbWx qc4UcD4cENBTBq0ZpEeEGzp4Wdexbk6/Zz+qSyi92TDvdG2w6+9kVjrA8U0FLfTw+7vE S9gA== 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 f13si16399766edw.44.2021.06.21.04.59.23; Mon, 21 Jun 2021 04:59:45 -0700 (PDT) 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 S229661AbhFUMA2 (ORCPT + 99 others); Mon, 21 Jun 2021 08:00:28 -0400 Received: from mail-vs1-f44.google.com ([209.85.217.44]:44580 "EHLO mail-vs1-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229610AbhFUMA1 (ORCPT ); Mon, 21 Jun 2021 08:00:27 -0400 Received: by mail-vs1-f44.google.com with SMTP id x13so9047832vsf.11; Mon, 21 Jun 2021 04:58:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JvkNDTjahjImKj3duGEUeFWayKv7PwXaOqSSyc1OVNU=; b=mzK59I7nS2/Rbb7tHKJMj67tOfJ4UMw82PnXs9qpMeAYPi9OTasrlFXZsRv+kikZRN 1q00zKJKYkb4SZ335W2+vHhWXV5YeZktngy4xw8gJns7FeS36Bw+5V4gTyMw8r3VJiOK zfl7iWLEtT+BBtWNst4tpHJYQ1EO+6TwMp7E31DnM8RQUSLeB1R3QNgEw1bEih263m7x +bQL513hHSD+S8Z6iM/nbZS61pZKhh/4KSr4qQsHn0FU85FmL4ZzypKW4cKr/kcXYeIT b/4RJMiTvYpX3VlR4Qxr69LWo9Qyx2v135E4WtVQG9TUQFjKJRU6ob4wmaNaPGWcj9N5 thiA== X-Gm-Message-State: AOAM530qrcPEykzzwSoazQjg4+n8JPS4v8SFpODCeKv4XMcQdmCj3Y3Z v5XHiynpGPp7JAohPH1lrF7x5keWRKv+NbNlnTc= X-Received: by 2002:a67:7787:: with SMTP id s129mr11610077vsc.40.1624276692898; Mon, 21 Jun 2021 04:58:12 -0700 (PDT) MIME-Version: 1.0 References: <20210408072402.15069-1-dinghao.liu@zju.edu.cn> In-Reply-To: <20210408072402.15069-1-dinghao.liu@zju.edu.cn> From: Geert Uytterhoeven Date: Mon, 21 Jun 2021 13:58:01 +0200 Message-ID: Subject: Re: [PATCH] PCI: rcar: Fix runtime PM imbalance in rcar_pcie_ep_probe To: Dinghao Liu Cc: Kangjie Lu , Marek Vasut , Yoshihiro Shimoda , Lorenzo Pieralisi , Rob Herring , Bjorn Helgaas , linux-pci , Linux-Renesas , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 8, 2021 at 9:24 AM 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. > > Signed-off-by: Dinghao Liu Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds