All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sylwester Nawrocki <s.nawrocki@samsung.com>
To: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: Sylwester Nawrocki <snjw23@gmail.com>,
	Linux Media Mailing List <linux-media@vger.kernel.org>,
	Sakari Ailus <sakari.ailus@iki.fi>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	sakari.ailus@maxwell.research.nokia.com,
	Stan <svarbanov@mm-sol.com>, Hans Verkuil <hansverk@cisco.com>,
	saaguirre@ti.com, Mauro Carvalho Chehab <mchehab@infradead.org>
Subject: Re: [PATCH/RFC v4] V4L: add media bus configuration subdev operations
Date: Fri, 01 Jul 2011 14:54:17 +0200	[thread overview]
Message-ID: <4E0DC379.4060807@samsung.com> (raw)
In-Reply-To: <Pine.LNX.4.64.1107010036390.20437@axis700.grange>

On 07/01/2011 12:42 AM, Guennadi Liakhovetski wrote:
...
>>> +/**
>>> + * v4l2_mbus_type - media bus type
>>> + * @V4L2_MBUS_PARALLEL:	parallel interface with hsync and vsync
>>> + * @V4L2_MBUS_BT656:	parallel interface with embedded synchronisation, can
>>> + *			also be used for BT.1120
>>> + * @V4L2_MBUS_CSI2:	MIPI CSI-2 serial interface
>>> + */
>>> +enum v4l2_mbus_type {
>>> +	V4L2_MBUS_PARALLEL,
>>> +	V4L2_MBUS_BT656,
>>> +	V4L2_MBUS_CSI2,
>>
>> How about internal connections between processing blocks inside SoCs?
>> Don't we want to also list those here? I mean direct connections
>> like Preview Engine -> Resizer in TI SoCs or Display Mixer -> Video Capture
>> Engine in Samsung SoCs.
>> If there is no all possible bus types in this list I can't see how
>> driver's for such hardware could be converted to use this new interface. 
>>
>> Perhaps we could add something like
>> V4L2_MBUS_INTERNAL or V4L2_MBUS_USER1...?
> 
> Maybe. But again, this patch is not aiming at covering all possible cases. 
> We discuss it to avoid stupid or wrong things. Correct but incomplete 
> things can always be added. So, once someone get to implement such a 
> connection, using this API, they will just add one more type here. Why I'm 

Sure, we can add more types when needed. The only parameters I'm aware of
at the moment for such an internal bus is clock type and clock frequency.
It certainly needs more investigation and discussing.

Your patch looks OK to me, except is has only a declaration of
v4l2_mbus_config_compatible() and the implementation is lost somewhere.
I guess we'll need to replace the "flags" field with an union ewentually,
but it would be good to get the patch merged in this form so we can finally
move forward with the sensor drivers standardization.

> also unsure whether and how to add it now is, that these types define bus 
> properties. E.g., on CSI-2 you have up to 4 data lanes, a clock lane with 
> certain properties etc. What properties does the "internal" bus have? I 
> would leave it out until we really get to implement it.

Regards,
-- 
Sylwester Nawrocki
Samsung Poland R&D Center

      reply	other threads:[~2011-07-01 12:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-29 16:27 [PATCH/RFC v4] V4L: add media bus configuration subdev operations Guennadi Liakhovetski
2011-06-30 21:51 ` Sylwester Nawrocki
2011-06-30 22:42   ` Guennadi Liakhovetski
2011-07-01 12:54     ` Sylwester Nawrocki [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E0DC379.4060807@samsung.com \
    --to=s.nawrocki@samsung.com \
    --cc=g.liakhovetski@gmx.de \
    --cc=hansverk@cisco.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@infradead.org \
    --cc=saaguirre@ti.com \
    --cc=sakari.ailus@iki.fi \
    --cc=sakari.ailus@maxwell.research.nokia.com \
    --cc=snjw23@gmail.com \
    --cc=svarbanov@mm-sol.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.