]> git.karo-electronics.de Git - mv-sheeva.git/commit
[media] em28xx: replug locking cleanup
authorChris Rankin <rankincj@yahoo.com>
Sun, 25 Sep 2011 21:43:12 +0000 (18:43 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 26 Sep 2011 02:12:35 +0000 (23:12 -0300)
commit778f295080b62cbce1af402e1704566531e01233
tree3ed8deb39ebedd89c9255c3ac6681393526595b1
parentf055815fd0e4dd22ffd523f0e5117132c0a49e3d
[media] em28xx: replug locking cleanup

Simplifies the locking by moving the em28xx_init_extension() call until
em28xx_usb_probe() has finished with the dev->lock mutex. It therefore
makes the second and subsequent "plugging" events logically identical to
the first "plugging" event when the em28xx-dvb and em28xx-alsa modules
must be loaded (i.e. registered).

Basically, em28xx_usb_probe() requests that em28xx-dvb be loaded and
also triggers udev to initialise the V4L2 devices. These two events are
serialised by the dev->lock mutex but the order that they happen in is
undefined. But this has always been the case anyway.

Signed-off-by: Chris Rankin <rankincj@yahoo.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/em28xx/em28xx-cards.c