Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1664797 > unrolled thread
| Started by | Pavel Machek <pavel@ucw.cz> |
|---|---|
| First post | 2017-06-13 14:30 +0200 |
| Last post | 2017-06-16 00:30 +0200 |
| Articles | 11 — 3 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
v4l2-fwnode: status, plans for merge, any branch to merge against? Pavel Machek <pavel@ucw.cz> - 2017-06-13 14:30 +0200
Re: v4l2-fwnode: status, plans for merge, any branch to merge against? Sakari Ailus <sakari.ailus@iki.fi> - 2017-06-13 14:50 +0200
Re: v4l2-fwnode: status, plans for merge, any branch to merge against? Pavel Machek <pavel@ucw.cz> - 2017-06-13 23:10 +0200
Re: v4l2-fwnode: status, plans for merge, any branch to merge against? Sakari Ailus <sakari.ailus@iki.fi> - 2017-06-14 13:10 +0200
Re: v4l2-fwnode: status, plans for merge, any branch to merge against? Pavel Machek <pavel@ucw.cz> - 2017-06-14 21:50 +0200
Re: v4l2-fwnode: status, plans for merge, any branch to merge against? Sakari Ailus <sakari.ailus@iki.fi> - 2017-06-16 00:10 +0200
Re: v4l2-fwnode: status, plans for merge, any branch to merge against? Pavel Machek <pavel@ucw.cz> - 2017-06-16 08:30 +0200
[PATCH] omap3isp: fix compilation Pavel Machek <pavel@ucw.cz> - 2017-06-16 00:30 +0200
Re: [PATCH] omap3isp: fix compilation Hans Verkuil <hverkuil@xs4all.nl> - 2017-06-16 10:10 +0200
Re: [PATCH] omap3isp: fix compilation Sakari Ailus <sakari.ailus@iki.fi> - 2017-06-16 14:10 +0200
n900 camera on v4.12-rc (was Re: v4l2-fwnode: status, plans for merge, any branch to merge against?) Pavel Machek <pavel@ucw.cz> - 2017-06-16 00:30 +0200
| From | Pavel Machek <pavel@ucw.cz> |
|---|---|
| Date | 2017-06-13 14:30 +0200 |
| Subject | v4l2-fwnode: status, plans for merge, any branch to merge against? |
| Message-ID | <tRT7k-7UN-33@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
Hi! Are there any news about the fwnode branch? I have quite usable camera, but it is still based on 982e8e40390d26430ef106fede41594139a4111c (that's v4.10). It would be good to see fwnode stuff upstream... are there any plans for that? Is there stable branch to which I could move the stuff? Thanks, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
[toc] | [next] | [standalone]
| From | Sakari Ailus <sakari.ailus@iki.fi> |
|---|---|
| Date | 2017-06-13 14:50 +0200 |
| Subject | Re: v4l2-fwnode: status, plans for merge, any branch to merge against? |
| Message-ID | <tRTqG-81T-11@gated-at.bofh.it> |
| In reply to | #1664797 |
Hi Pavel, On Tue, Jun 13, 2017 at 02:22:40PM +0200, Pavel Machek wrote: > Hi! > > Are there any news about the fwnode branch? > > I have quite usable camera, but it is still based on > 982e8e40390d26430ef106fede41594139a4111c (that's v4.10). It would be > good to see fwnode stuff upstream... are there any plans for that? > > Is there stable branch to which I could move the stuff? What's relevant for most V4L2 drivers is in linux-media right now. There are new features that will take some time to get in. The trouble has been, and continue to be, that the patches need to go through various trees so it'll take some time for them to be merged. I expect to have most of them in during the next merge window. -- Kind regards, Sakari Ailus e-mail: sakari.ailus@iki.fi XMPP: sailus@retiisi.org.uk
[toc] | [prev] | [next] | [standalone]
| From | Pavel Machek <pavel@ucw.cz> |
|---|---|
| Date | 2017-06-13 23:10 +0200 |
| Subject | Re: v4l2-fwnode: status, plans for merge, any branch to merge against? |
| Message-ID | <tS1ez-4Bs-51@gated-at.bofh.it> |
| In reply to | #1664806 |
[Multipart message — attachments visible in raw view] — view raw
Hi! > > Are there any news about the fwnode branch? > > > > I have quite usable camera, but it is still based on > > 982e8e40390d26430ef106fede41594139a4111c (that's v4.10). It would be > > good to see fwnode stuff upstream... are there any plans for that? > > > > Is there stable branch to which I could move the stuff? > > What's relevant for most V4L2 drivers is in linux-media right now. > > There are new features that will take some time to get in. The trouble has > been, and continue to be, that the patches need to go through various trees > so it'll take some time for them to be merged. > > I expect to have most of them in during the next merge window. So git://linuxtv.org/media_tree.git branch master is the right one to work one? Thanks, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
[toc] | [prev] | [next] | [standalone]
| From | Sakari Ailus <sakari.ailus@iki.fi> |
|---|---|
| Date | 2017-06-14 13:10 +0200 |
| Subject | Re: v4l2-fwnode: status, plans for merge, any branch to merge against? |
| Message-ID | <tSelr-4qx-3@gated-at.bofh.it> |
| In reply to | #1665200 |
Hi, Pavel! On Tue, Jun 13, 2017 at 11:09:00PM +0200, Pavel Machek wrote: > Hi! > > > > Are there any news about the fwnode branch? > > > > > > I have quite usable camera, but it is still based on > > > 982e8e40390d26430ef106fede41594139a4111c (that's v4.10). It would be > > > good to see fwnode stuff upstream... are there any plans for that? > > > > > > Is there stable branch to which I could move the stuff? > > > > What's relevant for most V4L2 drivers is in linux-media right now. > > > > There are new features that will take some time to get in. The trouble has > > been, and continue to be, that the patches need to go through various trees > > so it'll take some time for them to be merged. > > > > I expect to have most of them in during the next merge window. > > So git://linuxtv.org/media_tree.git branch master is the right one to > work one? I also pushed the rebased ccp2 branch there: <URL:https://git.linuxtv.org/sailus/media_tree.git/log/?h=ccp2> It's now right on the top of media-tree master. -- Regards, Sakari Ailus e-mail: sakari.ailus@iki.fi XMPP: sailus@retiisi.org.uk
[toc] | [prev] | [next] | [standalone]
| From | Pavel Machek <pavel@ucw.cz> |
|---|---|
| Date | 2017-06-14 21:50 +0200 |
| Subject | Re: v4l2-fwnode: status, plans for merge, any branch to merge against? |
| Message-ID | <tSmsG-Tw-9@gated-at.bofh.it> |
| In reply to | #1665712 |
[Multipart message — attachments visible in raw view] — view raw
Hi!
> > > > Are there any news about the fwnode branch?
> > > >
> > > > I have quite usable camera, but it is still based on
> > > > 982e8e40390d26430ef106fede41594139a4111c (that's v4.10). It would be
> > > > good to see fwnode stuff upstream... are there any plans for that?
> > > >
> > > > Is there stable branch to which I could move the stuff?
> > >
> > > What's relevant for most V4L2 drivers is in linux-media right now.
> > >
> > > There are new features that will take some time to get in. The trouble has
> > > been, and continue to be, that the patches need to go through various trees
> > > so it'll take some time for them to be merged.
> > >
> > > I expect to have most of them in during the next merge window.
> >
> > So git://linuxtv.org/media_tree.git branch master is the right one to
> > work one?
>
> I also pushed the rebased ccp2 branch there:
>
> <URL:https://git.linuxtv.org/sailus/media_tree.git/log/?h=ccp2>
>
> It's now right on the top of media-tree master.
Thanks, that's what I was looking for.
Unfortunately, it does not compile.
CC drivers/media/platform/omap3isp/ispcsiphy.o
drivers/media/platform/omap3isp/isp.c: In function
'isp_fwnode_parse':
drivers/media/platform/omap3isp/isp.c:2029:35: error: 'fwn'
undeclared (first use in this function)
drivers/media/platform/omap3isp/isp.c:2029:35: note: each undeclared
identifier is reported only once for each function it appears in
drivers/media/platform/omap3isp/isp.c:2029:2: error: incompatible
type for argument 2 of 'v4l2_fwnode_endpoint_parse'
In file included from drivers/media/platform/omap3isp/isp.c:67:0:
./include/media/v4l2-fwnode.h:112:5: note: expected 'struct
v4l2_fwnode_endpoint *' but argument is of type 'struct
v4l2_fwnode_endpoint'
scripts/Makefile.build:302: recipe for target
'drivers/media/platform/omap3isp/isp.o' failed
make[4]: *** [drivers/media/platform/omap3isp/isp.o] Error 1
make[4]: *** Waiting for unfinished jobs....
scripts/Makefile.build:561: recipe for target
'drivers/media/platform/omap3isp' failed
make[3]: *** [drivers/media/platform/omap3isp] Error 2
You can get my config if needed. Now let me try to fix it... It was
not too bad, good.
commit 364340e7aa037535a65d2ef2a1711c97d233fede
Author: Pavel <pavel@ucw.cz>
Date: Wed Jun 14 21:40:37 2017 +0200
Fix compilation of omap3isp/isp.c.
Signed-off-by: Pavel Machek <pavel@ucw.cz>
diff --git a/drivers/media/platform/omap3isp/isp.c b/drivers/media/platform/omap3isp/isp.c
index 4ca3fc9..b80debf 100644
--- a/drivers/media/platform/omap3isp/isp.c
+++ b/drivers/media/platform/omap3isp/isp.c
@@ -2026,7 +2026,7 @@ static int isp_fwnode_parse(struct device *dev, struct fwnode_handle *fwnode,
isd->bus = buscfg;
- ret = v4l2_fwnode_endpoint_parse(fwn, vep);
+ ret = v4l2_fwnode_endpoint_parse(fwnode, &vep);
if (ret)
return ret;
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
[toc] | [prev] | [next] | [standalone]
| From | Sakari Ailus <sakari.ailus@iki.fi> |
|---|---|
| Date | 2017-06-16 00:10 +0200 |
| Subject | Re: v4l2-fwnode: status, plans for merge, any branch to merge against? |
| Message-ID | <tSL7H-8eT-7@gated-at.bofh.it> |
| In reply to | #1666176 |
On Wed, Jun 14, 2017 at 09:41:29PM +0200, Pavel Machek wrote: > diff --git a/drivers/media/platform/omap3isp/isp.c b/drivers/media/platform/omap3isp/isp.c > index 4ca3fc9..b80debf 100644 > --- a/drivers/media/platform/omap3isp/isp.c > +++ b/drivers/media/platform/omap3isp/isp.c > @@ -2026,7 +2026,7 @@ static int isp_fwnode_parse(struct device *dev, struct fwnode_handle *fwnode, > > isd->bus = buscfg; > > - ret = v4l2_fwnode_endpoint_parse(fwn, vep); > + ret = v4l2_fwnode_endpoint_parse(fwnode, &vep); > if (ret) > return ret; I just pushed the fix there. Btw. I think we should probably drop the change allocating the sub-device configuration separately. It's better to associate the lens, flash and eeprom (where it exists) to the sensor than to the CSI-2 receiver. In that case there are no async sub-devices without bus configuration. -- Sakari Ailus e-mail: sakari.ailus@iki.fi XMPP: sailus@retiisi.org.uk
[toc] | [prev] | [next] | [standalone]
| From | Pavel Machek <pavel@ucw.cz> |
|---|---|
| Date | 2017-06-16 08:30 +0200 |
| Subject | Re: v4l2-fwnode: status, plans for merge, any branch to merge against? |
| Message-ID | <tSSVz-4NR-9@gated-at.bofh.it> |
| In reply to | #1667303 |
[Multipart message — attachments visible in raw view] — view raw
On Fri 2017-06-16 01:07:00, Sakari Ailus wrote: > On Wed, Jun 14, 2017 at 09:41:29PM +0200, Pavel Machek wrote: > > diff --git a/drivers/media/platform/omap3isp/isp.c b/drivers/media/platform/omap3isp/isp.c > > index 4ca3fc9..b80debf 100644 > > --- a/drivers/media/platform/omap3isp/isp.c > > +++ b/drivers/media/platform/omap3isp/isp.c > > @@ -2026,7 +2026,7 @@ static int isp_fwnode_parse(struct device *dev, struct fwnode_handle *fwnode, > > > > isd->bus = buscfg; > > > > - ret = v4l2_fwnode_endpoint_parse(fwn, vep); > > + ret = v4l2_fwnode_endpoint_parse(fwnode, &vep); > > if (ret) > > return ret; > > I just pushed the fix there. > > Btw. I think we should probably drop the change allocating the sub-device > configuration separately. It's better to associate the lens, flash and > eeprom (where it exists) to the sensor than to the CSI-2 receiver. In that > case there are no async sub-devices without bus configuration. Actually I thought about that a bit, and am not sure about that. CSI-2 receiver may not be good place to associate lens and flash with, agreed. But is sensor a good place? In particular, phones with two cameras cooperating (for example one black&white and one color) are getting common. It seems to be true that each sensor has a lens and autofocus motor associated, but flash LED is common, and both sensors are designed to work as one device. But yes, that's still better than placing it at CSI-2 receiver. But I guess we should make sure that flash LED can associated with more than one sensor, and maybe we should have some kind of "camera package" entity. Best regards, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
[toc] | [prev] | [next] | [standalone]
| From | Pavel Machek <pavel@ucw.cz> |
|---|---|
| Date | 2017-06-16 00:30 +0200 |
| Subject | [PATCH] omap3isp: fix compilation |
| Message-ID | <tSLr4-8li-9@gated-at.bofh.it> |
| In reply to | #1665712 |
[Multipart message — attachments visible in raw view] — view raw
Fix compilation of isp.c
Signed-off-by: Pavel Machek <pavel@ucw.cz>
diff --git a/drivers/media/platform/omap3isp/isp.c b/drivers/media/platform/omap3isp/isp.c
index 4ca3fc9..b80debf 100644
--- a/drivers/media/platform/omap3isp/isp.c
+++ b/drivers/media/platform/omap3isp/isp.c
@@ -2026,7 +2026,7 @@ static int isp_fwnode_parse(struct device *dev, struct fwnode_handle *fwnode,
isd->bus = buscfg;
- ret = v4l2_fwnode_endpoint_parse(fwn, vep);
+ ret = v4l2_fwnode_endpoint_parse(fwnode, &vep);
if (ret)
return ret;
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
[toc] | [prev] | [next] | [standalone]
| From | Hans Verkuil <hverkuil@xs4all.nl> |
|---|---|
| Date | 2017-06-16 10:10 +0200 |
| Subject | Re: [PATCH] omap3isp: fix compilation |
| Message-ID | <tSUul-5Te-1@gated-at.bofh.it> |
| In reply to | #1667313 |
On 06/16/2017 12:23 AM, Pavel Machek wrote: > > Fix compilation of isp.c > > Signed-off-by: Pavel Machek <pavel@ucw.cz> > > diff --git a/drivers/media/platform/omap3isp/isp.c b/drivers/media/platform/omap3isp/isp.c > index 4ca3fc9..b80debf 100644 > --- a/drivers/media/platform/omap3isp/isp.c > +++ b/drivers/media/platform/omap3isp/isp.c > @@ -2026,7 +2026,7 @@ static int isp_fwnode_parse(struct device *dev, struct fwnode_handle *fwnode, > > isd->bus = buscfg; > > - ret = v4l2_fwnode_endpoint_parse(fwn, vep); > + ret = v4l2_fwnode_endpoint_parse(fwnode, &vep); > if (ret) > return ret; > > You're using something old since the media tree master already uses &vep. Regards, Hans
[toc] | [prev] | [next] | [standalone]
| From | Sakari Ailus <sakari.ailus@iki.fi> |
|---|---|
| Date | 2017-06-16 14:10 +0200 |
| Subject | Re: [PATCH] omap3isp: fix compilation |
| Message-ID | <tSYeB-8fF-1@gated-at.bofh.it> |
| In reply to | #1667509 |
On Fri, Jun 16, 2017 at 10:03:41AM +0200, Hans Verkuil wrote: > On 06/16/2017 12:23 AM, Pavel Machek wrote: > > > >Fix compilation of isp.c > >Signed-off-by: Pavel Machek <pavel@ucw.cz> > > > >diff --git a/drivers/media/platform/omap3isp/isp.c b/drivers/media/platform/omap3isp/isp.c > >index 4ca3fc9..b80debf 100644 > >--- a/drivers/media/platform/omap3isp/isp.c > >+++ b/drivers/media/platform/omap3isp/isp.c > >@@ -2026,7 +2026,7 @@ static int isp_fwnode_parse(struct device *dev, struct fwnode_handle *fwnode, > > isd->bus = buscfg; > >- ret = v4l2_fwnode_endpoint_parse(fwn, vep); > >+ ret = v4l2_fwnode_endpoint_parse(fwnode, &vep); > > if (ret) > > return ret; > > > > You're using something old since the media tree master already uses &vep. Well, yes and no. Pavel is using my ccp2 support branch I recently rebased. :-) -- Sakari Ailus e-mail: sakari.ailus@iki.fi XMPP: sailus@retiisi.org.uk
[toc] | [prev] | [next] | [standalone]
| From | Pavel Machek <pavel@ucw.cz> |
|---|---|
| Date | 2017-06-16 00:30 +0200 |
| Subject | n900 camera on v4.12-rc (was Re: v4l2-fwnode: status, plans for merge, any branch to merge against?) |
| Message-ID | <tSLr4-8li-19@gated-at.bofh.it> |
| In reply to | #1665712 |
[Multipart message — attachments visible in raw view] — view raw
Hi! Ok, so I played a bit, and now I have working camera in v4.12-rc3. https://git.kernel.org/pub/scm/linux/kernel/git/pavel/linux-n900.git/ camera-fw5-3 is recommended branch to play with. Sakari, should I attempt to clean/send you patches, or would it be better to wait till ccp2 branch is merged upstream? There's one compile fix, I'll submit that one in following email. I even have patches for v4l2-utils, so digital camera can be used as ... digital camera :-). (With rather slow autofocus, and 1Mpix only at the moment, but hey, its a start, and I already have _one_ nice picture from it.) Best regards, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web