]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
V4L/DVB (9912): em28xx: fix/improve em28xx locking schema
authorMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 17 Dec 2008 01:04:56 +0000 (22:04 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 30 Dec 2008 11:39:14 +0000 (09:39 -0200)
commitefc52a94840198eb5ba68107812b879d34959dbb
tree24cfe20c1c2558e1c572a91718596f994a75b933
parentcf8c91c3e77cc26c43cfe6fc47e649b685736259
V4L/DVB (9912): em28xx: fix/improve em28xx locking schema

Changes/fixes on em28xx dev->lock:

- em28xx_init_dev() were unlocking without a previous lock;

- some read ioctls need to lock after the removal of KBL, since a write
  may be happening at the same time an ioctl is reading;

- keep the device locked during all device initialization;

- lock/unlock while reading/writing registers.

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