All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] Documentation: media: Document media bus codes to use on serial busses
@ 2020-05-19  7:21 Sakari Ailus
  2020-05-19  7:56 ` Hans Verkuil
  0 siblings, 1 reply; 3+ messages in thread
From: Sakari Ailus @ 2020-05-19  7:21 UTC (permalink / raw)
  To: linux-media; +Cc: laurent.pinchart, hverkuil

Document media bus codes on serial busses. The single sample per pixel
variant is to be chosen from all the possible variants. While this has
been the practice since the introduction of CSI-2 support, it never was
written down. Do it now.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
---
 Documentation/driver-api/media/csi2.rst | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/Documentation/driver-api/media/csi2.rst b/Documentation/driver-api/media/csi2.rst
index da8b356389f0..af078ac927bd 100644
--- a/Documentation/driver-api/media/csi2.rst
+++ b/Documentation/driver-api/media/csi2.rst
@@ -10,6 +10,16 @@ the host SoC. It is defined by the `MIPI alliance`_.
 
 .. _`MIPI alliance`: http://www.mipi.org/
 
+Media bus formats
+-----------------
+
+Always use single sample per pixel formats on the CSI-2 bus.
+
+No new media bus formats were created when the support for serial busses were
+added. To avoid using different media bus codes to describe the same format, the
+practice is to use a format that has a single sample per pixel on the parallel
+bus.
+
 Transmitter drivers
 -------------------
 
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] Documentation: media: Document media bus codes to use on serial busses
  2020-05-19  7:21 [PATCH 1/1] Documentation: media: Document media bus codes to use on serial busses Sakari Ailus
@ 2020-05-19  7:56 ` Hans Verkuil
  2020-05-19  8:44   ` Sakari Ailus
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Verkuil @ 2020-05-19  7:56 UTC (permalink / raw)
  To: Sakari Ailus, linux-media; +Cc: laurent.pinchart

On 19/05/2020 09:21, Sakari Ailus wrote:
> Document media bus codes on serial busses. The single sample per pixel
> variant is to be chosen from all the possible variants. While this has
> been the practice since the introduction of CSI-2 support, it never was
> written down. Do it now.
> 
> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
> ---
>  Documentation/driver-api/media/csi2.rst | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/Documentation/driver-api/media/csi2.rst b/Documentation/driver-api/media/csi2.rst
> index da8b356389f0..af078ac927bd 100644
> --- a/Documentation/driver-api/media/csi2.rst
> +++ b/Documentation/driver-api/media/csi2.rst
> @@ -10,6 +10,16 @@ the host SoC. It is defined by the `MIPI alliance`_.
>  
>  .. _`MIPI alliance`: http://www.mipi.org/
>  
> +Media bus formats
> +-----------------
> +
> +Always use single sample per pixel formats on the CSI-2 bus.
> +
> +No new media bus formats were created when the support for serial busses were

busses -> buses

(actually, both spellings are used in about equal measures in the kernel, but
the official spelling is 'buses').

were -> was

(the support was added, 'support' is singular)

> +added. To avoid using different media bus codes to describe the same format, the
> +practice is to use a format that has a single sample per pixel on the parallel
> +bus.

To be honest, I'm confused by this text. Probably because I don't know enough
about CSI. I'm not really sure what you mean with 'single sample per pixel'.

Regards,

	Hans

> +
>  Transmitter drivers
>  -------------------
>  
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] Documentation: media: Document media bus codes to use on serial busses
  2020-05-19  7:56 ` Hans Verkuil
@ 2020-05-19  8:44   ` Sakari Ailus
  0 siblings, 0 replies; 3+ messages in thread
From: Sakari Ailus @ 2020-05-19  8:44 UTC (permalink / raw)
  To: Hans Verkuil; +Cc: linux-media, laurent.pinchart

Hi Hans,

Thanks for the review.

On Tue, May 19, 2020 at 09:56:04AM +0200, Hans Verkuil wrote:
> On 19/05/2020 09:21, Sakari Ailus wrote:
> > Document media bus codes on serial busses. The single sample per pixel
> > variant is to be chosen from all the possible variants. While this has
> > been the practice since the introduction of CSI-2 support, it never was
> > written down. Do it now.
> > 
> > Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
> > ---
> >  Documentation/driver-api/media/csi2.rst | 10 ++++++++++
> >  1 file changed, 10 insertions(+)
> > 
> > diff --git a/Documentation/driver-api/media/csi2.rst b/Documentation/driver-api/media/csi2.rst
> > index da8b356389f0..af078ac927bd 100644
> > --- a/Documentation/driver-api/media/csi2.rst
> > +++ b/Documentation/driver-api/media/csi2.rst
> > @@ -10,6 +10,16 @@ the host SoC. It is defined by the `MIPI alliance`_.
> >  
> >  .. _`MIPI alliance`: http://www.mipi.org/
> >  
> > +Media bus formats
> > +-----------------
> > +
> > +Always use single sample per pixel formats on the CSI-2 bus.
> > +
> > +No new media bus formats were created when the support for serial busses were
> 
> busses -> buses
> 
> (actually, both spellings are used in about equal measures in the kernel, but
> the official spelling is 'buses').

I guess you mean "American"?

> 
> were -> was
> 
> (the support was added, 'support' is singular)

Agreed.

> 
> > +added. To avoid using different media bus codes to describe the same format, the
> > +practice is to use a format that has a single sample per pixel on the parallel
> > +bus.
> 
> To be honest, I'm confused by this text. Probably because I don't know enough
> about CSI. I'm not really sure what you mean with 'single sample per pixel'.

Good catch.

I went to look into mbus format documentation to see how this was expressed
there, only to find the subject is already covered. This need to be
referred to from CSI-2 documentation though.

I'll send v2.

-- 
Regards,

Sakari Ailus

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-19  8:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-19  7:21 [PATCH 1/1] Documentation: media: Document media bus codes to use on serial busses Sakari Ailus
2020-05-19  7:56 ` Hans Verkuil
2020-05-19  8:44   ` 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.