Re: [PATCH 1/1] checkpatch: Deprecate V4L2 pipeline power management code
From: Joe Perches
Date: Tue Jul 14 2026 - 06:30:55 EST
On Mon, 2026-07-13 at 19:13 +0300, Sakari Ailus wrote:
> The V4L2 pipeline power management code, in particular
> v4l2_pipeline_link_notify(), v4l2_pipeline_pm_get() and
> v4l2_pipeline_pm_put() are deprecated and shall not be used in new code.
>
> The drivers need to use the Runtime PM instead.
Nack. Say that in the error output.
Given this patch, checkpatch's message would be something like
"Deprecated use of 'v4l2_pipeline_pm_get', prefer '' instead"
> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
[]
> @@ -879,6 +879,9 @@ our %deprecated_apis = (
> "DEFINE_IDR" => "DEFINE_XARRAY",
> "idr_init" => "xa_init",
> "idr_init_base" => "xa_init_flags",
> + "v4l2_pipeline_link_notify" => "",
> + "v4l2_pipeline_pm_get" => "",
> + "v4l2_pipeline_pm_put" => "",
Add something like "v4l2 runtime power management API" instead
At least point out what that is.
And in today's '-next' there's seems to be no indication in
documentation or code these calls are deprecated.