From: laurent.pinchart@ideasonboard.com (Laurent Pinchart)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4 2/5] media: ov2640: add async probe function
Date: Thu, 01 Jan 2015 19:43:02 +0200 [thread overview]
Message-ID: <2161202.2T9kzBHd7d@avalon> (raw)
In-Reply-To: <54A2782F.7040907@atmel.com>
Hi Josh,
On Tuesday 30 December 2014 18:02:23 Josh Wu wrote:
> On 12/30/2014 8:15 AM, Laurent Pinchart wrote:
> > On Monday 29 December 2014 16:28:02 Josh Wu wrote:
> >> On 12/26/2014 6:06 PM, Laurent Pinchart wrote:
> >>> On Friday 26 December 2014 10:14:26 Guennadi Liakhovetski wrote:
> >>>> On Fri, 26 Dec 2014, Laurent Pinchart wrote:
[snip]
> >>>>> Talking about mclk and xvclk is quite confusing. There's no mclk from
> >>>>> an ov2640 point of view. The ov2640 driver should call
> >>>>> v4l2_clk_get("xvclk").
> >>>>
> >>>> Yes, I also was thinking about this, and yes, requesting a "xvclk"
> >>>> clock would be more logical. But then, as you write below, if we let
> >>>> the v4l2_clk wrapper first check for a CCF "xvclk" clock, say, none is
> >>>> found. How do we then find the exported "mclk" V4L2 clock? Maybe
> >>>> v4l2_clk_get() should use two names?..
> >>>
> >>> Given that v4l2_clk_get() is only used by soc-camera drivers and that
> >>> they all call it with the clock name set to "mclk", I wonder whether we
> >>> couldn't just get rid of struct v4l2_clk.id and ignore the id argument
> >>> to v4l2_clk_get() when CCF isn't available. Maybe we've overdesigned
> >>> v4l2_clk :-)
> >>
> >> Sorry, I'm not clear about how to implement what you discussed here.
> >>
> >> Do you mean, In the ov2640 driver:
> >> 1. need to remove the patch 4/5, "add a master clock for sensor"
> >
> > No, the sensor has a clock input named "xvclk", the ov2640 driver should
> > thus manage that clock. Patch 4/5 does the right thing.
> >
> > However, I've just realized that it will cause regressions on the i.MX27,
> > i.MX31 and i.MX37 3DS development boards that use the sensor without
> > registering a clock named xvclk. You should fix that as part of the patch
> > series.
>
> Thanks for the information.
> So I think to be compatible with i.MX series board, I have two ways:
> 1. Make the xvclk clock be optional in ov2640 driver. After the i.MX
> series board switch to CCF, and we can change it to mandatory.
> 2. switch the i.MX host driver to DT, and add the xvclk to their dts.
>
> As I am not similar with i.MX board and cannot test for them. I prefer
> to the #1, which is simple and work well. We can change the property
> when CCF & DT is introduced to i.MX boards.
I'd be fine with this if DT bindings were not required to be stable. The
driver can always be fixed later, but biding should be correct from the start.
As the ov2640 chip requires a clock, the bindings must require the clock, and
the driver must enforce the requirement, at least when the device is
instantiated from DT.
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2015-01-01 17:43 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-18 2:27 [PATCH v4 0/5] media: ov2640: add device tree support Josh Wu
2014-12-18 2:27 ` [PATCH v4 1/5] media: soc-camera: use icd->control instead of icd->pdev for reset() Josh Wu
2014-12-18 2:27 ` [PATCH v4 2/5] media: ov2640: add async probe function Josh Wu
2014-12-18 21:59 ` Guennadi Liakhovetski
2014-12-19 6:11 ` Josh Wu
2014-12-19 22:16 ` Guennadi Liakhovetski
2014-12-22 10:27 ` Josh Wu
2014-12-24 22:39 ` Guennadi Liakhovetski
2014-12-26 6:37 ` Josh Wu
2014-12-26 9:01 ` Laurent Pinchart
2014-12-26 9:14 ` Guennadi Liakhovetski
2014-12-26 10:06 ` Laurent Pinchart
2014-12-26 10:38 ` Guennadi Liakhovetski
2014-12-30 0:23 ` Laurent Pinchart
2014-12-30 8:36 ` Guennadi Liakhovetski
2014-12-30 8:58 ` Laurent Pinchart
2014-12-30 10:08 ` Josh Wu
2014-12-30 12:12 ` Guennadi Liakhovetski
2015-01-01 17:44 ` Laurent Pinchart
2014-12-29 8:28 ` Josh Wu
2014-12-30 0:15 ` Laurent Pinchart
2014-12-30 10:02 ` Josh Wu
2015-01-01 17:43 ` Laurent Pinchart [this message]
2014-12-18 2:27 ` [PATCH v4 3/5] media: ov2640: add primary dt support Josh Wu
2014-12-18 2:27 ` [PATCH v4 4/5] media: ov2640: add a master clock for sensor Josh Wu
2014-12-18 2:27 ` [PATCH v4 5/5] media: ov2640: dt: add the device tree binding document Josh Wu
2014-12-18 11:56 ` Laurent Pinchart
2014-12-18 12:13 ` Sylwester Nawrocki
2014-12-18 12:21 ` Fabio Estevam
2014-12-22 10:32 ` Josh Wu
2014-12-22 11:47 ` Sylwester Nawrocki
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=2161202.2T9kzBHd7d@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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