]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[media] DiBcom: protect the I2C bufer access
authorPatrick Boettcher <Patrick.Boettcher@dibcom.fr>
Wed, 3 Aug 2011 15:08:21 +0000 (12:08 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 6 Aug 2011 12:25:15 +0000 (09:25 -0300)
commit79fcce3230b140f7675f8529ee53fe2f9644f902
tree548f87873e553e0c0e69e13f78c360e0d351f857
parenta5f2db539bd2a977cdee3fecc5c15dd0941c1ab3
[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>
drivers/media/dvb/frontends/dib0070.c
drivers/media/dvb/frontends/dib0090.c
drivers/media/dvb/frontends/dib7000m.c
drivers/media/dvb/frontends/dib7000p.c
drivers/media/dvb/frontends/dib8000.c
drivers/media/dvb/frontends/dib9000.c
drivers/media/dvb/frontends/dibx000_common.c
drivers/media/dvb/frontends/dibx000_common.h