Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2841581pxk; Tue, 15 Sep 2020 03:55:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZceCU+xrTcCwlfRBLtNM+AnyfeJoriPsVQZLi/YkymKZft1dXnmk/ku1stVizWjJ3waw1 X-Received: by 2002:a50:ab59:: with SMTP id t25mr21009373edc.364.1600167338099; Tue, 15 Sep 2020 03:55:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600167338; cv=none; d=google.com; s=arc-20160816; b=FkuB0SI/O81BBS42FchI5rigSYdyl9wP/RCdBu1cxf/4ZhCC3oUGb9oTL6CPFLLyYu BsTCcGQ5BOoqt/VrCHlOlMDPQzYFB2ccYpO/TgZG+xUTV6wsJeafOq1GnG5emqQCSdat wEk6G386vxmIUB4syqIsofFfwcvs8ViB8pV+O0uc27RAvcRPiuE8LYhUiuge4JiOaFGs HMyUQRLlEmqrfSZcK3cKIgDH0KAckNcxBiNljTf8VkSOjLcZccmapGNlq78qUdz7TsbX TVkVj0gWe341CDac8ChPQeuVRel4EtfN8pby2Du44LdYkBOwRydawgJ6UEoMZ9h+xMyp oB8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=IdU03k2T+rfb8VS3p8Sxk3R2bI7b0OTzVImyXev4JvY=; b=rjWRQZmb/EgQ6A8gISndwMqpUmxIxNQD3/QLpImYdt09TDhx8riXOyyB9uB8D/6mxO SLMPQNGE6Xe4/60SIxQAB90DJMG971nQUIWL0PgHuSX4znhNVY2bQ77wcj/wLu6J8hz/ dzEYSNibT+mDlEWvFwCvf5E3Ap8X9kxpNUfbAc3GOTmyaL3j3vp6nf2sP6frRAykiNV4 40YA2cbOLOfs5lOVgW8Vf5mI8WUTlUpmW3FzH6r/lJ3OtSLJTtmOlq79Jq5IpjFiu3St FZJM0Ts8PAFSL3YDFYIiOxkqKGYlXITW83XQtpj1YfpS4THWQgObK/6d4OVA6dq2cbPZ r4iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OA6iw8cQ; 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 cw20si8228469edb.141.2020.09.15.03.55.15; Tue, 15 Sep 2020 03:55:38 -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=OA6iw8cQ; 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 S1726361AbgIOKwO (ORCPT + 99 others); Tue, 15 Sep 2020 06:52:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726377AbgIOKmm (ORCPT ); Tue, 15 Sep 2020 06:42:42 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32008C06174A; Tue, 15 Sep 2020 03:42:41 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id jw11so1521730pjb.0; Tue, 15 Sep 2020 03:42:41 -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:content-transfer-encoding; bh=IdU03k2T+rfb8VS3p8Sxk3R2bI7b0OTzVImyXev4JvY=; b=OA6iw8cQu4rEpiM1ivWrF1ZhfIK2qT3L9Pz7NYFH1grD2HRi0xgyfVqHMb0q2lZ9ZV y0OdNup0F0gLcsqC/VuvQmdh9j2sYZiobksC3Mshvn+46rT/OKdgKBb4nMama+zgA/s5 N0aNc66SVEiwf6+NXEEnSZXKrnYg6D93YzULPQAFsUacDxClI1mgPvE0pP984QkPqwz2 QI3IF3l/dYCC6pLyjoZ917Hx3wW/tNg4ZEzT5cdk62QwCsV1/rM3kK8EoIfXa2JXOCm0 LcE0bqIgKDkK3Pgt4TwZsXFZNnItot5kzCoil7o4orfMwnaAjNGE3/j8rj4GNNPGGfPa i+Iw== 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:content-transfer-encoding; bh=IdU03k2T+rfb8VS3p8Sxk3R2bI7b0OTzVImyXev4JvY=; b=mC4CEVVA5QwZDtRX3JacyltSIjOSVCVXP5Zf8/Gioa6Rda5teg9ZHBUDKHjgyl8LzB XV2TNDTVhDJSL1YS/Xpn3N+gEZfesxAMVPrxEx1PlLfUoIEOYyvP7Cz95/GBvjRQcSfo W/Pf28M6MSOxCmzlpAuyakJsLzj+mRRvHOb6zDlsJGg94+I5lGrJnIsxNH0qNNJaQNrO aSEW2LdERi5poZUpGDUDJsUMHTrrH0nq+wExilNurvjVOsd9QxXsj03Gl2KMPzb0NWW0 jqZjDeStNa5g7nuWS7gN13wZOcNOAQ9wIeufPFPx5lWK50Ona1Y4HHbd1DRt6fhUmKJf nIZg== X-Gm-Message-State: AOAM5321fVIYJJ5feKfsL6JMaJ3VxzXVDFWGywPz6g5ZawhR9KqsHiDP wxBvRbiuPEye7T8acO2du3YPzdsbkgc258TEP9Q= X-Received: by 2002:a17:90b:fc4:: with SMTP id gd4mr3587838pjb.129.1600166561173; Tue, 15 Sep 2020 03:42:41 -0700 (PDT) MIME-Version: 1.0 References: <20200915150202.24165-1-qiangqing.zhang@nxp.com> In-Reply-To: From: Andy Shevchenko Date: Tue, 15 Sep 2020 13:42:23 +0300 Message-ID: Subject: Re: [PATCH] media: rc: gpio-ir-recv: add QoS support for cpuidle system To: Joakim Zhang Cc: "sean@mess.org" , "mchehab@kernel.org" , "linux-media@vger.kernel.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 15, 2020 at 11:06 AM Joakim Zhang wro= te: > From: Andy Shevchenko > Sent: 2020=E5=B9=B49=E6=9C=8815=E6=97=A5 15:18 > To: Joakim Zhang > Cc: sean@mess.org; mchehab@kernel.org; linux-media@vger.kernel.org; linux= -kernel@vger.kernel.org; dl-linux-imx > Subject: Re: [PATCH] media: rc: gpio-ir-recv: add QoS support for cpuidle= system > On Tuesday, September 15, 2020, Joakim Zhang wr= ote: > + ret =3D pm_runtime_get(dev); > + if (ret < 0) > > > > Here is reference counter leak. > > > > Thanks Andy for your kindly review. > > pm_runtime_get increase the usage_count even it fails, so need call pm_ru= ntime_put_noidle here to balance the usage_count. Am I right? Yes. > + return IRQ_NONE; --=20 With Best Regards, Andy Shevchenko