Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp543695pxy; Wed, 5 May 2021 08:10:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZjo+t3Ox/N41hY+iOn/vX9lHOJqmggD1coPltv2ikNSRjMUs5I7BypQdprL5TrEVjUuF8 X-Received: by 2002:a17:906:2c4c:: with SMTP id f12mr2248247ejh.3.1620227456949; Wed, 05 May 2021 08:10:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620227456; cv=none; d=google.com; s=arc-20160816; b=sp+1t3CoEOk2q9XOIaRatgjA+a6XsArSxlGdOrByKc9aJrIMNYSuMrPgb+ARs8FF/d 1+nvU2bFZR6DPMkopoFRS7jGPwG19Ko2BSDR0tfnDXLLQ88I850pnT1oNmRWcMcG7S/M lwLBs3G7vWtjnRSW92L5lP1u95IFjZNuhKmaYCucVHtZYuXfgZTeXV8CloWWkcTuJpZc M2mmYrYVTdFtsbB05SVzGxRfk+27S+yKWhknd1vt4/RRoNv1fJ0C6PorhsrkSzw1bpKv eCRbB9qdxqTP1JM5hWfWVm6QC7dA3JO3+AnD36/f2zyHBwmjx2+WCUTwlaisfdOJsREx yocg== 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 :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id; bh=Tbp0+f3ZryuYQlgKTx4oRijr3/sXEAI+Z7fqlb6Zhuo=; b=ngkWtF1+5BBzPAoTPs5b38nIERnJto51pGdlzf6bFAk3YUfplXKmGoHcb6XX/4n2ia 73OUyluW52pr69bnJcoGlNfOmlLTWx5e5MgJfqROnM/f4A3IasyNVS/ZDQlLXVYU+c/N ZZ8zAb3oR4mYAvocXGniX1CfehFg9dC6oEbSdLgABpq15cYzXa3Wxte4cQEEJNq6rMpj EgFwFBIHDTyOppYHlDpb5LUaYxQpd9FNwt+aE98ZHgMp3wgj0VYe15OUJI6oByeeQX3A UdpuqjTgSttqEF2Rgl87K8J5bDv/KZ+BjAKBPxj5e9BRQjuJy+h46HLYnrZbcsG8o+xg o7RQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gv37si5602713ejc.229.2021.05.05.08.10.33; Wed, 05 May 2021 08:10:56 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233605AbhEEOCm (ORCPT + 99 others); Wed, 5 May 2021 10:02:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233587AbhEEOCm (ORCPT ); Wed, 5 May 2021 10:02:42 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFCC3C06174A; Wed, 5 May 2021 07:01:45 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: ezequiel) with ESMTPSA id 978881F42DFA Message-ID: <735925557d7fde1c11affeea703f8486febc825d.camel@collabora.com> Subject: Re: [PATCH 09/25] media: hantro: do a PM resume earlier From: Ezequiel Garcia To: Mauro Carvalho Chehab Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Greg Kroah-Hartman , Hans Verkuil , Mauro Carvalho Chehab , Philipp Zabel , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-staging@lists.linux.dev Date: Wed, 05 May 2021 11:01:35 -0300 In-Reply-To: <20210505154647.62784bf7@coco.lan> References: <82114a4bd9c7bc1188c6a7167a6e74bb3360961d.1620207353.git.mchehab+huawei@kernel.org> <11c24f97ef71b16c2e7b3ba40ca66a28c12df692.camel@collabora.com> <20210505154647.62784bf7@coco.lan> Organization: Collabora Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.2-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2021-05-05 at 15:46 +0200, Mauro Carvalho Chehab wrote: > Em Wed, 05 May 2021 10:22:03 -0300 > Ezequiel Garcia escreveu: > > > Hi Mauro, > > > > Thanks for working on this. > > > > On Wed, 2021-05-05 at 11:41 +0200, Mauro Carvalho Chehab wrote: > > > The device_run() first enables the clock and then > > > tries to resume PM runtime, checking for errors. > > > > > > Well, if for some reason the pm_runtime can not resume, > > > it would be better to detect it beforehand. > > > > > > So, change the order inside device_run(). > > > > > > Reviewed-by: Ezequiel Garcia > > > Fixes: 775fec69008d ("media: add Rockchip VPU JPEG encoder driver") > > > Signed-off-by: Mauro Carvalho Chehab   > > > > It seems this is wrong now, as this series doesn't have > > > > https://lore.kernel.org/linux-media/803c39fafdd62efc6f9e4d99a372af2c6955143b.1619621413.git.mchehab+huawei@kernel.org/ > > > > I don't fully understand why all the back and forth > > happening on this series, but the former Hantro patches > > looked good (despite perhaps unclear commit messages). > > There was a request to break the original /79 series into smaller ones, > to make easier for reviewers. So, I opted to split it into (probably) > 3 series: > > 1. Fixes (this series); > 2. "use pm_runtime_resume_and_get" for the I2C drivers; > 3. "use pm_runtime_resume_and_get" for remaining ones. > > Before flooding everybody's email's with series (2) and (3), better > to focus at the fixes first. I'll probably send the other two series > by tomorrow. > > > Any issues just squashing these two commits from "[PATCH v4 00/79] Address some issues with PM runtime at media subsystem": > > > >   media: hantro: use pm_runtime_resume_and_get() > >   media: hantro: do a PM resume earlier > > The problem is that pm_runtime_resume_and_get() was added only > recently (Kernel v5.10). > > So, I opted to place the fix patches before the changes, as this > way, most (all?) patches can be easily be backported to legacy Kernels > as needed. > Got it. Maybe the better fix would be the squash of [PATCH v4 78/79] media: hantro: use pm_runtime_resume_and_get() and [PATCH v4 79/79] media: hantro: do a PM resume earlier but keeping pm_runtime_get_sync. And then you can replace the pm_runtime_get_sync with pm_runtime_resume_and_get. Thanks, Ezequiel