Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp963591ybm; Wed, 27 May 2020 12:18:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8d15K2iUC5iWb/2tEvGNIi3F1K2BIpOIECZEL9WG70cuoU6mxVztes0i+zkzEWxgI21eN X-Received: by 2002:a17:907:9f4:: with SMTP id ce20mr4612473ejc.365.1590607126728; Wed, 27 May 2020 12:18:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590607126; cv=none; d=google.com; s=arc-20160816; b=U0lLmlC3A8igA+5nJk7zStz8aft7Xo3WVbuJVqRo+jHUc332Gkwmszax/3UAB/aPUO gHzNSOlf11M89DHAWwe+YNYJ6pMqRuduthVdhzck260hyNYDK3ExeUwlS7lfiPF+efFi XrQ5+UAiNZjaJoWyfppOVCJDPIgMn7ggugjKl/5XxYIQWkgHbw4ITNo9wdjMQ9etw8qs 2bnYfGx0nVzp2ani6saNukXIuxJtTs8ywt82red68LHsKstjQp/OnBrMyrnMp9Nq4ZIW rXjQe1M9Dm73IOXmcHTjUQ9GtwJIdYdZis2Lxkk/UcIHEsScPOcwE3eHnsr8v0LM2BcA 06Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ex7IpsFf5vbd7jDa3Cc2CVu/MVLoWad3EnAdTjcLBPg=; b=GBM+rGLVRsoMrw9f/Ec0CyGV9be9ePlpOZt3NdEhtYMHF3Y/tAUUXVjGVyrejIpYnp X9YzBMXFEFiBzBXB4Z9sBHWfcDQXZdBmZL/g2ne8lmEiUGPaDk4i8eEkvfIHmaZ4u+82 VgYsv9l487qjpGbbHPEAiSSVZE2xYbdybisN7MRI3YXaj/bupKD2MNYxz8Yus5J3Gh+e PekCgjDJgovte/eVdxpjX78WtQR0aQtlmReRjElDEnUU+Qv+hZk//nUINxwmzgImK07j YR7awhPrmim7b1v67p/FygnoFI6J2EfmkvrugmporUy7LXJAyNq4MLO5ALhlhj4pQgLh 51+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=W14ZYt7B; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dg13si2368913edb.330.2020.05.27.12.18.23; Wed, 27 May 2020 12:18:46 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=W14ZYt7B; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387545AbgE0R0y (ORCPT + 98 others); Wed, 27 May 2020 13:26:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728305AbgE0R0x (ORCPT ); Wed, 27 May 2020 13:26:53 -0400 Received: from mail-ot1-x343.google.com (mail-ot1-x343.google.com [IPv6:2607:f8b0:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F697C03E97D; Wed, 27 May 2020 10:26:53 -0700 (PDT) Received: by mail-ot1-x343.google.com with SMTP id 69so195829otv.2; Wed, 27 May 2020 10:26:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ex7IpsFf5vbd7jDa3Cc2CVu/MVLoWad3EnAdTjcLBPg=; b=W14ZYt7B0s+6sp69P8egSf3n3GU4KMARtcC+sKGAR7EZL1CMGsGApc4CkKYz33Ke9R 0Kz6opSggDS5k7zNVYDY7BqlQLCo74j/dq/IccFf+JDaWQDg1Aflh0+OgpSyIb+1rbko HZBafpVxfPPR7e/Cy48hPxO5X7BRO9DM+WSRT878+aKHW/prh1UoOWgApAW6lSCUwbXX 75Zfq54qvt+YSDClr6MiZkL866iZJtKv4Z71NQ0w7j9DeLzDyMsTBHi3jhL0jtcrNZGs AZWaI+Ve4V+MoMbvKBw1BRi7xP2BT5kMh84NaZMv+6hsHp4JYkrUryG+RffzO3fdnFFM 1XYw== 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=ex7IpsFf5vbd7jDa3Cc2CVu/MVLoWad3EnAdTjcLBPg=; b=iXboTczpRb5vmsrimUi9k6ZJlEbUHUdMMvMaXf0DHFymu3NFUaHiruT12v3HvY/Y33 oOiNu2Y2U7IyqK7nvHNw1fDAtsnk6ZEpEipE2ISeAbGoeeYsot1oSAxpW1UvSGsynhSK ppC9WEtVzjoPWPyGwKpxhKfECo2ppT858m6YUUkl76rEIFymyKqJFuh1cYsXKTCD4ZOu XEjftlgoPFYU3ugabEUbqhWZwkvasu9DqDv1JfqtyTqjuZLEKiY6SRqmgsD10MsUVMqF 1AHhtRZn6FbyJGjwukkYGZkNh0KvqdIiPq5KyoEy9inlgnM51oCnlNutaMm21GwcJ+Ut KXyg== X-Gm-Message-State: AOAM531lrWe5tPGixaOMuchcf9w7Zz26WKEGiZuxA/NnXdjvPk6ZS3C4 Rxue+MulcPZy1iA6ERSHeJaciUQbEtzIElkcos4jX2Y7KCwu+Q== X-Received: by 2002:a9d:d83:: with SMTP id 3mr5242171ots.365.1590600412698; Wed, 27 May 2020 10:26:52 -0700 (PDT) MIME-Version: 1.0 References: <20200523114917.18222-1-dinghao.liu@zju.edu.cn> In-Reply-To: <20200523114917.18222-1-dinghao.liu@zju.edu.cn> From: "Lad, Prabhakar" Date: Wed, 27 May 2020 18:26:25 +0100 Message-ID: Subject: Re: [PATCH] media: vpif: Fix runtime PM imbalance in vpif_probe To: Dinghao Liu Cc: Kangjie Lu , Mauro Carvalho Chehab , linux-media , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dinghao, Thank you for the patch. On Sat, May 23, 2020 at 12:49 PM Dinghao Liu wrote: > > When platform_get_resource() returns an error code, a > pairing runtime PM usage counter decrement is needed > to keep the counter balanced. > > Signed-off-by: Dinghao Liu > --- > drivers/media/platform/davinci/vpif.c | 1 + > 1 file changed, 1 insertion(+) > Reviewed-by: Lad Prabhakar Cheers, --Prabhakar > diff --git a/drivers/media/platform/davinci/vpif.c b/drivers/media/platform/davinci/vpif.c > index df66461f5d4f..f28c1b27eac6 100644 > --- a/drivers/media/platform/davinci/vpif.c > +++ b/drivers/media/platform/davinci/vpif.c > @@ -458,6 +458,7 @@ static int vpif_probe(struct platform_device *pdev) > res_irq = platform_get_resource(pdev, IORESOURCE_IRQ, 0); > if (!res_irq) { > dev_warn(&pdev->dev, "Missing IRQ resource.\n"); > + pm_runtime_put(&pdev->dev); > return -EINVAL; > } > > -- > 2.17.1 >