From: Ryan Raasch <ryan.raasch@gmail.com>
To: Carlos Lavin <carlos.lavin@vista-silicon.com>
Cc: video4linux-list <video4linux-list@redhat.com>
Subject: Re: problem with the register of driver that works with soc_camera_subsystem
Date: Tue, 12 Jan 2010 11:41:49 +0100 [thread overview]
Message-ID: <4B4C51ED.8050708@gmail.com> (raw)
In-Reply-To: <fe6fd5f61001120153v5604e61qd2900909b808be99@mail.gmail.com>
Carlos Lavin wrote:
> I am trying build a system on video with mx27 and ov7670 sensor but when I
> want register my driver that works with soc_camera subsystem in the 2.6.30
> version(I have works in this version because my boss wants it that way ), I
> executed the function "soc_camera_host_register(&mx27_soc_camera_host);" In
> the probe function of host-camera, this funcion is in the soc_camera.c and
> this function call to "scan_add_host" and this funcion is:
> 1- static void scan_add_host(struct soc_camera_host *ici)
> 2- {
> 3- struct soc_camera_device *icd;
> 4- mutex_lock(&list_lock);
> 5- list_for_each_entry(icd, &devices, list) {
> 6- if (icd->iface == ici->nr) {
> 7- icd->dev.parent = &ici->dev;
> 8- device_register_link(icd);
> 9- }
> 10- }
> 11- mutex_unlock(&list_lock);
> 12-}
>
> Well, in the probe function of camera-host I put ici->nr=0 (ici is
> soc_camera_host); but icd-> iface I don't know where is declared, in my chip
> camera I declare a soc_camera_device where I put the iface=0, but in this
In the device specific startup file, there needs to be a structure
static struct soc_camera_link iclink
I use the mach-pxa. Look in the arch/arm/mach-pxa/pcm990-baseboard.c for
an example of how to integrate a soc camera.
Cheers,
Ryan
> function, "scan_add_host" in the if of line 6, the icd-iface is different of
> 0, and the function device_register_link isn't executed.
>
> In the chip_camera this function,"device_register_link"(is called for your
> appropriate function,scan_add_device) yes is executed, anybody know anything
> about this problem? is a problem or this function only is necessary to
> execute one once for both(chip-camera and host-camera), I think that is
> necessary that this function is executed for both but I am rookie in this
> topics. anybody help me?
> Thanks for your time.
> --
> video4linux-list mailing list
> Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/video4linux-list
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
prev parent reply other threads:[~2010-01-12 10:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-12 9:53 problem with the register of driver that works with soc_camera_subsystem Carlos Lavin
2010-01-12 10:41 ` Ryan Raasch [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=4B4C51ED.8050708@gmail.com \
--to=ryan.raasch@gmail.com \
--cc=carlos.lavin@vista-silicon.com \
--cc=video4linux-list@redhat.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