]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB: cx25840: Make cx25840 i2c register read transactions atomic
authorAndy Walls <awalls@md.metrocast.net>
Sun, 18 Jul 2010 20:16:16 +0000 (17:16 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 9 Aug 2010 02:42:54 +0000 (23:42 -0300)
commit69ef762c13d7eb53e2ca3e379c322f3a47261354
tree5ff0dacd50271a6998fe23b22ef53068fee1653f
parent782f7c546f7067f074c0305fa7b3133bc8cc66e8
V4L/DVB: cx25840: Make cx25840 i2c register read transactions atomic

There was a small window between writing the cx25840 register
address over the i2c bus and reading the register contents back from the
cx25840 device that the i2c adapter lock was released.  This change ensures the
adapter lock is not released until the register read is done.

Signed-off-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx25840/cx25840-core.c