From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx1.redhat.com (ext-mx10.extmail.prod.ext.phx2.redhat.com [10.5.110.14]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o0CAgBVb002176 for ; Tue, 12 Jan 2010 05:42:11 -0500 Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.26]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o0CAftlt018270 for ; Tue, 12 Jan 2010 05:41:55 -0500 Received: by qw-out-2122.google.com with SMTP id 8so2542147qwh.39 for ; Tue, 12 Jan 2010 02:41:55 -0800 (PST) Message-ID: <4B4C51ED.8050708@gmail.com> Date: Tue, 12 Jan 2010 11:41:49 +0100 From: Ryan Raasch MIME-Version: 1.0 To: Carlos Lavin Subject: Re: problem with the register of driver that works with soc_camera_subsystem References: In-Reply-To: Cc: video4linux-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: video4linux-list-bounces@redhat.com Errors-To: video4linux-list-bounces@redhat.com List-ID: 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