media: v4l2-mc: Make v4l2_pipeline_pm_{get,put} deprecated
PATCH 1/1 media: v4l2-mc: Make v4l2_pipeline_pm_{get,put} deprecated
The v4l2_pipeline_pm_get() and v4l2_pipeline_pm_put() functions were needed to control sub-devices' power states before runtime PM. These functions should no longer be used, and instead sub-device drivers should use runtime PM.
Signed-off-by Sakari Ailus <[email protected]>
--- include/media/v4l2-mc.h | 6 ++++++ 1 file changed, 6 insertions(+)
include/media/v4l2-mc.h +6 -0
@@ -143,6 +143,9 @@ int v4l2_create_fwnode_links(struct v4l2_subdev *src_sd,* v4l2_pipeline_pm_get - Increase the use count of a pipeline * @entity: The root entity of a pipeline * +* THIS FUNCTION IS DEPRECATED. DO NOT USE IN NEW DRIVERS. USE RUNTIME PM +* ON SUB-DEVICE DRIVERS INSTEAD. +* * Update the use count of all entities in the pipeline and power entities on. * * This function is intended to be called in video node open. It uses
@@ -157,6 +160,9 @@ int v4l2_pipeline_pm_get(struct media_entity *entity);* v4l2_pipeline_pm_put - Decrease the use count of a pipeline * @entity: The root entity of a pipeline * +* THIS FUNCTION IS DEPRECATED. DO NOT USE IN NEW DRIVERS. USE RUNTIME PM +* ON SUB-DEVICE DRIVERS INSTEAD. +* * Update the use count of all entities in the pipeline and power entities off. * * This function is intended to be called in video node release. It uses
Signature · 1 line
2.39.2
Hi Sakari,
Thank you for the patch.
Quoted 6 lines · Sakari Ailus
The
v4l2_pipeline_pm_get()andv4l2_pipeline_pm_put()functions were needed to control sub-devices' power states before runtime PM. These functions should no longer be used, and instead sub-device drivers should use runtime PM.Signed-off-by Sakari Ailus <[email protected]>
Reviewed-by Laurent Pinchart <[email protected]>
Quoted 28 lines
--- include/media/v4l2-mc.h | 6 ++++++ 1 file changed, 6 insertions(+)include/media/v4l2-mc.h +6
-0@@ -143,6 +143,9 @@ int v4l2_create_fwnode_links(struct v4l2_subdev *src_sd,* v4l2_pipeline_pm_get - Increase the use count of a pipeline * @entity: The root entity of a pipeline * +* THIS FUNCTION IS DEPRECATED. DO NOT USE IN NEW DRIVERS. USE RUNTIME PM +* ON SUB-DEVICE DRIVERS INSTEAD. +* * Update the use count of all entities in the pipeline and power entities on. * * This function is intended to be called in video node open. It uses @@ -157,6 +160,9 @@ int v4l2_pipeline_pm_get(struct media_entity *entity);* v4l2_pipeline_pm_put - Decrease the use count of a pipeline * @entity: The root entity of a pipeline * +* THIS FUNCTION IS DEPRECATED. DO NOT USE IN NEW DRIVERS. USE RUNTIME PM +* ON SUB-DEVICE DRIVERS INSTEAD. +* * Update the use count of all entities in the pipeline and power entities off. * * This function is intended to be called in video node release. It uses
Signature · 3 lines
Regards, Laurent Pinchart