summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/dibx000_common.h
diff options
context:
space:
mode:
authorPatrick Boettcher <Patrick.Boettcher@dibcom.fr>2011-08-03 12:08:21 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-08-06 09:25:15 -0300
commit79fcce3230b140f7675f8529ee53fe2f9644f902 (patch)
tree548f87873e553e0c0e69e13f78c360e0d351f857 /drivers/media/dvb/frontends/dibx000_common.h
parenta5f2db539bd2a977cdee3fecc5c15dd0941c1ab3 (diff)
downloadop-kernel-dev-79fcce3230b140f7675f8529ee53fe2f9644f902.zip
op-kernel-dev-79fcce3230b140f7675f8529ee53fe2f9644f902.tar.gz
[media] DiBcom: protect the I2C bufer access
This patch protects the I2C buffer access in order to manage concurrent access. This protection is done using mutex. Furthermore, for the dib9000, if a pid filtering command is received during the tuning, this pid filtering command is delayed to avoid any concurrent access issue. Cc: Mauro Carvalho Chehab <mchehab@redhat.com> Cc: Florian Mickler <florian@mickler.org> Cc: stable@kernel.org Signed-off-by: Olivier Grenie <olivier.grenie@dibcom.fr> Signed-off-by: Patrick Boettcher <Patrick.Boettcher@dibcom.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/dibx000_common.h')
-rw-r--r--drivers/media/dvb/frontends/dibx000_common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/dibx000_common.h b/drivers/media/dvb/frontends/dibx000_common.h
index f031165..5e01147 100644
--- a/drivers/media/dvb/frontends/dibx000_common.h
+++ b/drivers/media/dvb/frontends/dibx000_common.h
@@ -33,6 +33,7 @@ struct dibx000_i2c_master {
struct i2c_msg msg[34];
u8 i2c_write_buffer[8];
u8 i2c_read_buffer[2];
+ struct mutex i2c_buffer_lock;
};
extern int dibx000_init_i2c_master(struct dibx000_i2c_master *mst,
OpenPOWER on IntegriCloud