[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aa053292f1efd29d01f8e1685e82d6f1b520e9a3.camel@collabora.com>
Date: Sat, 24 Apr 2021 15:23:29 -0300
From: Ezequiel Garcia <ezequiel@...labora.com>
To: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>
Cc: linuxarm@...wei.com, mauro.chehab@...wei.com,
Heiko Stuebner <heiko@...ech.de>,
Jacob Chen <jacob-chen@...wrt.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-media@...r.kernel.org, linux-rockchip@...ts.infradead.org
Subject: Re: [PATCH 05/78] media: mdk-mdp: fix pm_runtime_get_sync() usage
count
Hi Mauro,
On Sat, 2021-04-24 at 08:44 +0200, Mauro Carvalho Chehab wrote:
> The pm_runtime_get_sync() internally increments the
> dev->power.usage_count without decrementing it, even on errors.
> replace it by the new pm_runtime_resume_and_get(), introduced by:
> commit dd8088d5a896 ("PM: runtime: Add pm_runtime_resume_and_get to deal with usage counter")
> in order to properly decrement the usage counter and avoid memory
> leaks.
>
> While here, check if the PM runtime was caught during
> chipset probing time.
>
> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>
> ---
> drivers/media/platform/rockchip/rga/rga.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
The commit log "media" mdk-mdp" is wrong here.
Maybe you can squash this commit with media: rga-buf: use pm_runtime_resume_and_get()?
Thanks,
Ezequiel
Powered by blists - more mailing lists