Re: [PATCH 1/1] checkpatch: Deprecate V4L2 pipeline power management code
From: Laurent Pinchart
Date: Tue Jul 14 2026 - 04:21:59 EST
Hi Sakari,
Thank you for the patch.
On Mon, Jul 13, 2026 at 07:13:27PM +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.
I'll be happy to see this API go, so we certainly need to make sure no
new drivers use it.
Reviewed-by: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx>
> Signed-off-by: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx>
> ---
> scripts/checkpatch.pl | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
> index 2b7a42bbdd94..a8a7374dc9c4 100755
> --- 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" => "",
> );
>
> #Create a search pattern for all these strings to speed up a loop below
--
Regards,
Laurent Pinchart