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