Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1682986pxj; Wed, 19 May 2021 11:22:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx38c3651YvTA+kLDtDhN+xtbzCHQF9c+Bax5ZBP+vV71f+KVZYo9LZw29g36Qn6RmjzsNX X-Received: by 2002:a17:907:7654:: with SMTP id kj20mr428221ejc.439.1621448562058; Wed, 19 May 2021 11:22:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621448562; cv=none; d=google.com; s=arc-20160816; b=o1dE46pu/Fb0BnZCHbNKgku988UOajrG04AhVOZ4hZ0dAJv0Wx3BAERK2OZq7lZRHR DlmTWcQhUdWTRJ+ezRR3mD4GHq/4Wf5tkIHhxTWQJBVYNPNmy48ZhlBC9IDnIxsY3fnY E4H/sv7kpzAwrpUGBzvAW8t0tJEDyDyOp5r/8TWw9ypC6YJTYpikW0n91MrZYr5x/2ql G2/4WUPvTcNU0F3c/yRtHiKnSU1E4u5TFvPMo0G7MKFT3sCurWcMAvb4ly3IhzSEA7S7 Gpv+YDPWTTzEHMfys9+pP/Pxoxx4wDEZSu8EWP+N68e/MoLHJ6C+yk1CuKHHz2Px8d3U 9opg== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=HOTQ8XWPfhU+8Mo6deh8zoDDBbwyFCLDNKJeS1YabO8=; b=R+JfqidTFKqfLUhysXtN7EfBoLWI60Pf/oSCr9Qb9+mYdF4XbVZGHQdy4HSOvXKsvK y+Ei4xZ+tggp8/+RDcoZCEwFN2tJ83NbLnMuAS4a32yn/EtwOpYqs/WTayh3fnEUM9km mQajaH2tA8LyPabfc613RTUDXD9ZuT5j7YQZPbxPf1CEbQGeRvxPHvIGa3EouvxpmqYf Mp0rP74e+AzwtIfOJBjo+u0Td4QlWVW71gTrMBlCJsDw/CZ86oQjlZUpzhAFxwWDxjla ECvK8WwJv7C0lebcBxgIIwFRscRJSMpnHmYsvMPJ10J9MVwKLM+TtO1n4w2Sfsb0u3MA 3CWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Cr1JVzJp; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mp6si331478ejc.146.2021.05.19.11.22.17; Wed, 19 May 2021 11:22:42 -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=@kernel.org header.s=k20201202 header.b=Cr1JVzJp; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350136AbhERPVi (ORCPT + 99 others); Tue, 18 May 2021 11:21:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:54296 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350112AbhERPVi (ORCPT ); Tue, 18 May 2021 11:21:38 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7214D61074; Tue, 18 May 2021 15:20:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621351219; bh=pM/wP3SO41YR80bpdiSeEVPNAWyq2ivENVttrfaRQHs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Cr1JVzJpVxA9bSwQKfEm7NFNpHGuLvIkYLdaPZDX+C04HCezG/s5TBTjK9uPufG5L GtFvCKBz5kMWgJHH+XhgR0JlDEF/iTBluzxOOc+4BO/fQpibetNmRFhufzRF1yV8VY x9HOX6XVrYiyd0Y6jgdV6N4WPeIaL/LVMNloD6yt0gchD6fM96IqYzeEj/4nkCFHWz hJwFzDA0zSO1mpfD+i5JynSGp5np3T8DSq3krsGVW3Gyc3r6/AnuebRjtw8pSeewCJ /TmysaiRwgEK2rr0mdEnEcSxpeg0+wpAqCYrC56AfBTeOqxua0LKmKqpAVJd4PCXKL FUajvLvD2jzOg== Date: Tue, 18 May 2021 17:20:14 +0200 From: Mauro Carvalho Chehab To: Stanimir Varbanov Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Andy Gross , Bjorn Andersson , Mauro Carvalho Chehab , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: Re: [PATCH v5 13/25] media: venus: core: use pm_runtime_resume_and_get() Message-ID: <20210518172014.68f7a655@coco.lan> In-Reply-To: <3f41387e-a15f-1e45-6b63-bd6ef647a47f@linaro.org> References: <492e148ae1c7b0a8858c1670037925d3e4adb719.1620314616.git.mchehab+huawei@kernel.org> <3f41387e-a15f-1e45-6b63-bd6ef647a47f@linaro.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, 17 May 2021 18:26:14 +0300 Stanimir Varbanov escreveu: > Hi Mauro, > > On 5/10/21 4:54 PM, Stanimir Varbanov wrote: > > > > > > On 5/6/21 6:25 PM, Mauro Carvalho Chehab wrote: > >> Commit dd8088d5a896 ("PM: runtime: Add pm_runtime_resume_and_get to deal with usage counter") > >> added pm_runtime_resume_and_get() in order to automatically handle > >> dev->power.usage_count decrement on errors. > >> > >> Use the new API, in order to cleanup the error check logic. > >> > >> Signed-off-by: Mauro Carvalho Chehab > >> --- > >> drivers/media/platform/qcom/venus/pm_helpers.c | 3 +-- > >> 1 file changed, 1 insertion(+), 2 deletions(-) > > > > Tested-by: Stanimir Varbanov > > Acked-by: Stanimir Varbanov > > > > What is the plan for these venus patches. Do I need to take them through > my Venus pull request for v5.14 or you will take them directly? Whatever works best for you. In principle, I should apply them on my tree probably tomorrow, if ok for you. Regards, Mauro > > >> > >> diff --git a/drivers/media/platform/qcom/venus/pm_helpers.c b/drivers/media/platform/qcom/venus/pm_helpers.c > >> index c7e1ebec47ee..d0fddf5e9a69 100644 > >> --- a/drivers/media/platform/qcom/venus/pm_helpers.c > >> +++ b/drivers/media/platform/qcom/venus/pm_helpers.c > >> @@ -990,9 +990,8 @@ static int core_power_v4(struct venus_core *core, int on) > >> > >> if (on == POWER_ON) { > >> if (pmctrl) { > >> - ret = pm_runtime_get_sync(pmctrl); > >> + ret = pm_runtime_resume_and_get(pmctrl); > >> if (ret < 0) { > >> - pm_runtime_put_noidle(pmctrl); > >> return ret; > >> } > >> } > >> > > > Thanks, Mauro