public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Stanimir Varbanov <svarbanov@mm-sol.com>
To: "Aguirre, Sergio" <saaguirre@ti.com>
Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	Hans Verkuil <hansverk@cisco.com>,
	Sylwester Nawrocki <snjw23@gmail.com>,
	"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>
Subject: Re: [RFC/PATCH 0/1] New subdev sensor operation g_interface_parms
Date: Thu, 24 Feb 2011 11:45:19 +0200	[thread overview]
Message-ID: <4D6628AF.4040401@mm-sol.com> (raw)
In-Reply-To: <A24693684029E5489D1D202277BE894488D6F9F5@dlee02.ent.ti.com>

Hi,

<snip>
>> Sorry, I accept different opinions, and in the end only one of the two
>> possibilities will be implemented, and either way it'll all work in the
>> end, but, I don't buy either of these arguments.
> 
>> Complexity - the code is
>> already there, it is working, it is simple, it has not broken since it has
>> been implemented. I had it hard-coded in the beginning and I went over to
>> negotiation and never regretted it.
> 
> First of all, it seems that this discussion is heavily parallel i/f
> oriented, and soc_camera focused, and it's just not like that.
> 

yes, it seems that is correct. My patch just get back on host side some
sensor dynamic parameters and it doesn't pretending for any negotiation.

> Now, _just_ for soc_camera framework, yeah... it works and it's there, but
> still not providing a solution for other v4l2_subdev users (like Media
> Controller).
> 

I already start looking into soc_camera code, but I'm so confused. :(

> Complexity comes only when trying to make this truly generic, and avoid
> fragmentation of solutions (1 for soc, 1 for MC), plus adding support for
> serial (MIPI) interfaces
> 
> Now, also, the patch originally proposed by Stan doesn't actually deal with
> putting polarities as part of the interface parameters, which is something
> you're currently negotiating in soc_camera framework, again, just for
> parallel interfaces.
> 
> Now, just for the sake of clarifying my understanding, I guess what you're
> saying is to make sensor driver expose all possible polarities and physical
> details configurable, and make the platform data limit the actual options due to the physical layout.
> 
> For example, if in my board A, I have:
> 
> 	- OV5640 sensor driver, which supports both Parallel and CSI2
>         Interfaces (with up to 2 datalanes)
> 	- Rx subdev (or host) driver(s) which support Parallel, CSI2-A and
>         CSI2-B interfaces (with 2 and 1 datalanes respectively).
> 

If the sensor is physically connected as parallel and serial the board
code should dictates the preferred interface, IMO. Or ...

> I should specify in my boardfile integration details, such as the
> sensor is actually wired to the CSI2-B I/f, so make the sensor
> negotiate with the other side of the bus and enable CSI2 i/f with
> given details, like just use 1 datalane, and match datalane
> position/polarity.
> 
> Am I understanding right?
> 
>> Hardware damage - if this were the case, I'd probably be surrounded only
>> by bricks. How configuring a wrong hsync polarity can damage your
>> hardware?
> 
> Ok, I'll regret my statement on this one. I guess I was a bit too dramatic
> to point out consequences of HW mismatches. Nevermind this.
> 

:)

> Regards,
> Sergio
> 
>> Thanks
>> Guennadi
>> ---
>> Guennadi Liakhovetski, Ph.D.
>> Freelance Open-Source Software Developer
>> http://www.open-technology.de/
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


-- 
Best regards,
Stan

  reply	other threads:[~2011-02-24  9:45 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-22 10:31 [RFC/PATCH 0/1] New subdev sensor operation g_interface_parms Stanimir Varbanov
2011-02-22 10:31 ` [RFC/PATCH 1/1] v4l: Introduce sensor operation for getting interface configuration Stanimir Varbanov
2011-02-22 11:40 ` [RFC/PATCH 0/1] New subdev sensor operation g_interface_parms Guennadi Liakhovetski
2011-02-22 13:32   ` Hans Verkuil
2011-02-22 14:01     ` Aguirre, Sergio
2011-02-22 14:34       ` Guennadi Liakhovetski
2011-02-23 11:15       ` Laurent Pinchart
2011-02-22 14:11     ` Guennadi Liakhovetski
2011-02-22 15:17       ` Hans Verkuil
2011-02-22 15:30         ` Guennadi Liakhovetski
2011-02-22 15:34       ` Stan
2011-02-22 16:27         ` Guennadi Liakhovetski
2011-02-22 17:00           ` Hans Verkuil
2011-02-22 17:08             ` Guennadi Liakhovetski
2011-02-23 11:34               ` Laurent Pinchart
2011-02-22 21:42             ` Sylwester Nawrocki
2011-02-23  8:10               ` Hans Verkuil
2011-02-23  9:31                 ` Guennadi Liakhovetski
2011-02-23 14:06                   ` Aguirre, Sergio
2011-02-23 14:17                     ` Hans Verkuil
2011-02-23 14:46                       ` Guennadi Liakhovetski
2011-02-23 15:30                     ` Laurent Pinchart
2011-02-23 15:52                       ` Guennadi Liakhovetski
2011-02-23 16:02                       ` Hans Verkuil
2011-02-23 16:14                         ` Laurent Pinchart
2011-02-23 16:20                           ` Aguirre, Sergio
2011-02-23 16:46                             ` Guennadi Liakhovetski
2011-02-23 17:45                               ` Aguirre, Sergio
2011-02-24  9:45                                 ` Stanimir Varbanov [this message]
2011-02-23 16:28                           ` Hans Verkuil
2011-02-23 16:35                             ` Laurent Pinchart
2011-02-23 16:37                   ` Laurent Pinchart
2011-02-23 16:40                     ` Guennadi Liakhovetski
2011-02-25 18:23                   ` Sakari Ailus
2011-02-26 12:50                     ` Hans Verkuil
2011-02-26 13:14                       ` Guennadi Liakhovetski
2011-02-26 13:39                         ` Hans Verkuil
2011-02-26 14:03                       ` Sylwester Nawrocki
2011-02-26 14:45                       ` Laurent Pinchart
2011-02-23  9:31                 ` Hans Verkuil
2011-02-23 15:06                   ` Aguirre, Sergio
2011-02-23 11:04   ` Laurent Pinchart

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=4D6628AF.4040401@mm-sol.com \
    --to=svarbanov@mm-sol.com \
    --cc=g.liakhovetski@gmx.de \
    --cc=hansverk@cisco.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-media@vger.kernel.org \
    --cc=saaguirre@ti.com \
    --cc=snjw23@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox