Re: Using usbvideo for webcam drivers

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



Dmitri wrote:

You do not initialize the camera in probe() - this is bad because of many
reasons.
Is this still true? I realize that all probe()s are called from the same khubd thread, but where is the harm in making other devices wait? Is a device's address assigned only after the previous device's probe() returns?

Some devices, however, need to be accessed from within the
probe() code to find out the firmware version, capabilities etc.

There are a lot of other cases where a driver can spend a lot of time in probe() (eg.: a kmalloc that sleeps for a long time). Even with a very stripped-down probe(), won't problems start to appear with eg. 50 devices?

--
Mark McClelland
mmcclell@xxxxxxxxxxx







[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux