summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends/tda10071_priv.h
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2015-04-21 09:58:15 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-08-11 07:32:58 -0300
commite14432a5b7302c1f5c6c094de176ae111697bbab (patch)
tree9e706487ac0369486ab34e01b14d4c1d8a0f010e /drivers/media/dvb-frontends/tda10071_priv.h
parent54ab48ed5db69212b9b6abc88d21cbbd5c16e7c3 (diff)
downloadlinux-e14432a5b7302c1f5c6c094de176ae111697bbab.tar.gz
linux-e14432a5b7302c1f5c6c094de176ae111697bbab.tar.bz2
linux-e14432a5b7302c1f5c6c094de176ae111697bbab.zip
[media] tda10071: protect firmware command exec with mutex
There should be clearly some lock in order to make sure firmware command in execution is not disturbed by another command. It has worked as callbacks are serialized somehow pretty well and command execution happens usually without any delays. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/dvb-frontends/tda10071_priv.h')
-rw-r--r--drivers/media/dvb-frontends/tda10071_priv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/dvb-frontends/tda10071_priv.h b/drivers/media/dvb-frontends/tda10071_priv.h
index 30143c8f8bb8..cf5b43337136 100644
--- a/drivers/media/dvb-frontends/tda10071_priv.h
+++ b/drivers/media/dvb-frontends/tda10071_priv.h
@@ -30,6 +30,7 @@ struct tda10071_dev {
struct dvb_frontend fe;
struct i2c_client *client;
struct regmap *regmap;
+ struct mutex cmd_execute_mutex;
u32 clk;
u16 i2c_wr_max;
u8 ts_mode;