* [PATCH v2 1/1] media: v4l: subdev: Document s_power() callback is deprecated
@ 2022-09-19 22:16 Sakari Ailus
2022-09-19 22:18 ` Laurent Pinchart
0 siblings, 1 reply; 3+ messages in thread
From: Sakari Ailus @ 2022-09-19 22:16 UTC (permalink / raw)
To: linux-media; +Cc: laurent.pinchart
Runtime PM has been around for a decade or more, there's hardly a need to
use the V4L2 specific s_power() callback in drivers anymore. Document this
in s_power() callback documentation as well.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
include/media/v4l2-subdev.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h
index 2f80c9c818ed0..54566d139da79 100644
--- a/include/media/v4l2-subdev.h
+++ b/include/media/v4l2-subdev.h
@@ -176,7 +176,10 @@ struct v4l2_subdev_io_pin_config {
* @s_register: callback for VIDIOC_DBG_S_REGISTER() ioctl handler code.
*
* @s_power: puts subdevice in power saving mode (on == 0) or normal operation
- * mode (on == 1).
+ * mode (on == 1). DEPRECATED. See
+ * Documentation/driver-api/media/camera-sensor.rst . pre_streamon and
+ * post_streamoff callbacks can be used for e.g. setting the bus to LP-11
+ * mode before s_stream is called.
*
* @interrupt_service_routine: Called by the bridge chip's interrupt service
* handler, when an interrupt status has be raised due to this subdev,
--
2.30.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2 1/1] media: v4l: subdev: Document s_power() callback is deprecated
2022-09-19 22:16 [PATCH v2 1/1] media: v4l: subdev: Document s_power() callback is deprecated Sakari Ailus
@ 2022-09-19 22:18 ` Laurent Pinchart
2022-09-20 8:25 ` Sakari Ailus
0 siblings, 1 reply; 3+ messages in thread
From: Laurent Pinchart @ 2022-09-19 22:18 UTC (permalink / raw)
To: Sakari Ailus; +Cc: linux-media
On Tue, Sep 20, 2022 at 01:16:41AM +0300, Sakari Ailus wrote:
> Runtime PM has been around for a decade or more, there's hardly a need to
> use the V4L2 specific s_power() callback in drivers anymore. Document this
> in s_power() callback documentation as well.
>
> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> ---
> include/media/v4l2-subdev.h | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h
> index 2f80c9c818ed0..54566d139da79 100644
> --- a/include/media/v4l2-subdev.h
> +++ b/include/media/v4l2-subdev.h
> @@ -176,7 +176,10 @@ struct v4l2_subdev_io_pin_config {
> * @s_register: callback for VIDIOC_DBG_S_REGISTER() ioctl handler code.
> *
> * @s_power: puts subdevice in power saving mode (on == 0) or normal operation
> - * mode (on == 1).
> + * mode (on == 1). DEPRECATED. See
> + * Documentation/driver-api/media/camera-sensor.rst . pre_streamon and
Extra space before '.'
> + * post_streamoff callbacks can be used for e.g. setting the bus to LP-11
> + * mode before s_stream is called.
Technically post_streamoff doesn't really match that description, but
that's OK.
> *
> * @interrupt_service_routine: Called by the bridge chip's interrupt service
> * handler, when an interrupt status has be raised due to this subdev,
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2 1/1] media: v4l: subdev: Document s_power() callback is deprecated
2022-09-19 22:18 ` Laurent Pinchart
@ 2022-09-20 8:25 ` Sakari Ailus
0 siblings, 0 replies; 3+ messages in thread
From: Sakari Ailus @ 2022-09-20 8:25 UTC (permalink / raw)
To: Laurent Pinchart; +Cc: linux-media
Hi Laurent,
On Tue, Sep 20, 2022 at 01:18:36AM +0300, Laurent Pinchart wrote:
> On Tue, Sep 20, 2022 at 01:16:41AM +0300, Sakari Ailus wrote:
> > Runtime PM has been around for a decade or more, there's hardly a need to
> > use the V4L2 specific s_power() callback in drivers anymore. Document this
> > in s_power() callback documentation as well.
> >
> > Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
> > Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> > ---
> > include/media/v4l2-subdev.h | 5 ++++-
> > 1 file changed, 4 insertions(+), 1 deletion(-)
> >
> > diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h
> > index 2f80c9c818ed0..54566d139da79 100644
> > --- a/include/media/v4l2-subdev.h
> > +++ b/include/media/v4l2-subdev.h
> > @@ -176,7 +176,10 @@ struct v4l2_subdev_io_pin_config {
> > * @s_register: callback for VIDIOC_DBG_S_REGISTER() ioctl handler code.
> > *
> > * @s_power: puts subdevice in power saving mode (on == 0) or normal operation
> > - * mode (on == 1).
> > + * mode (on == 1). DEPRECATED. See
> > + * Documentation/driver-api/media/camera-sensor.rst . pre_streamon and
>
> Extra space before '.'
That's intended. It's easier to select that way.
>
> > + * post_streamoff callbacks can be used for e.g. setting the bus to LP-11
> > + * mode before s_stream is called.
>
> Technically post_streamoff doesn't really match that description, but
> that's OK.
Hopefully we can remove this soon... there seem to be 26 users left under
drivers/media and most of them are camera sensor drivers.
>
> > *
> > * @interrupt_service_routine: Called by the bridge chip's interrupt service
> > * handler, when an interrupt status has be raised due to this subdev,
>
--
Regards,
Sakari Ailus
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-09-20 8:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-19 22:16 [PATCH v2 1/1] media: v4l: subdev: Document s_power() callback is deprecated Sakari Ailus
2022-09-19 22:18 ` Laurent Pinchart
2022-09-20 8:25 ` Sakari Ailus
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.