]> git.baikalelectronics.ru Git - kernel.git/commit
[media] tda8290: Make all read operations atomic
authorMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 13 Jan 2011 14:58:36 +0000 (11:58 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 Jan 2011 13:45:20 +0000 (11:45 -0200)
commit5b6d0b325aafd3d9b18d9c85a5cc54ae8a5b55a7
treec4eacb99986d5efcc1e4f398b5478f6d213b8238
parent6c8134975ae52e735f3f5c674ac58fb4d359b0d9
[media] tda8290: Make all read operations atomic

Read operations should be preceeded by a write operation. However,
nothing prevents that an I2C operation could happen between the two
transactions.

To avoid that problem, use an unique I2C transfer for both parts of
the I2C transaction.

Cc: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/tda8290.c