Re: [PATCH 0/5] soc-camera: convert to platform device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 16 Apr 2009, Robert Jarzmik wrote:

> Robert Jarzmik <robert.jarzmik@xxxxxxx> writes:
> 
> > I need to make some additionnal tests with I2C loading/unloading, but otherwise
> > it works perfectly for (soc_camera / pxa_camera /mt9m111 combination).
> 
> Guennadi,
> 
> I made some testing, and there is something I don't understand in the new device
> model.
> This is the testcase I'm considering :
>  - I unload i2c-pxa, pxa-camera, mt9m111, soc-camera modules
>  - I load pxa-camera, mt9m111, soc-camera modules
>  - I then load i2c-pxa
>     => the mt9m111 is not detected

correct

>  - I unload and reload mt9m111 and pxa_camera
>     => not any better

Actually, I think, in this case it should be found again, as long as you 
reload pxa-camera while i2c-pxa is already loaded.

>  - I unload soc_camera, mt9m111, pxa_camera and reload
>     => this time the video device is detected
> 
> What I'm getting at is that if soc_camera is loaded before the i2c host driver,
> no camera will get any chance to work. Is that normal considering the new driver
> model ?
> I was naively thinking that there would be a "rescan" when the "control" was
> being available for a sensor.

Yes, unfortunately, it is "normal":-( On the one hand, we shouldn't really 
spend _too_ much time on this intermediate version, because, as I said, it 
is just a preparatory step for v4l2-subdev. We just have to make sure it 
doesn't introduce any significant regressions and doesn't crash too often. 
OTOH, this is also how it is with v4l2-subdev. With it you first must have 
the i2c-adapter driver loaded. Then, when a match between a camera host 
and a camera client (sensor) platform device is detected, it is reported 
to the v4l2-subdev core, which loads the respective camera i2c driver. If 
you then unload the camera-host and i2c adapter drivers, and then you load 
the camera-host driver, it then fails to get the adapter, and if you then 
load it, nothing else happens. To reprobe you have to unload and reload 
the camera host driver.

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

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux