--- On Sat, 20/8/11, Mauro Carvalho Chehab <mche...@redhat.com> wrote:
> No. The extension load can happen after the usb probe
> phase. In practice, the only case where the extension init will happen
> together with the usb probe phase is when the em28xx modules are
> compiled builtin

It also happens when someone plugs an adapter into the machine when the modules 
are already loaded. E.g. someone plugging a second adapter in, or unplugging 
and then replugging the same one.

> Maybe the proper fix would be to change the logic under
> em28xx_usb_probe() to not hold dev->lock anymore when the device is
> loading the extensions.

I could certainly write such a patch, although I only have a PCTV 290e adapter 
to test with.

Is this problem unique to the em28xx-dvb module? How does the em28xx-alsa 
module get away with creating ALSA devices without causing a similar race 
condition?

Cheers,
Chris

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to