diff options
author | Antti Palosaari <crope@iki.fi> | 2014-12-09 14:14:41 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-02-03 12:54:59 -0500 |
commit | fd4cfa8bb1bc0cdd385f33303b5058674ea8e24c (patch) | |
tree | fdd1c1a9e2dfb1a70f499e6f3e6fe1bfa16cbd72 /drivers/media/dvb-frontends/rtl2830_priv.h | |
parent | d9bd3fa6ec9efbfb0dadc7ba86848604fbebfc4b (diff) |
[media] rtl2830: implement own I2C locking
Own I2C locking is needed due to two special reasons:
1) Chips uses multiple register pages/banks on single I2C slave.
Page is changed via I2C register access.
2) Chip offers muxed/gated I2C adapter for tuner. Gate/mux is
controlled by I2C register access.
Due to these reasons, I2C locking did not fit very well.
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/rtl2830_priv.h')
-rw-r--r-- | drivers/media/dvb-frontends/rtl2830_priv.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/dvb-frontends/rtl2830_priv.h b/drivers/media/dvb-frontends/rtl2830_priv.h index 293188924f51..517758ab687a 100644 --- a/drivers/media/dvb-frontends/rtl2830_priv.h +++ b/drivers/media/dvb-frontends/rtl2830_priv.h | |||
@@ -30,6 +30,7 @@ struct rtl2830_dev { | |||
30 | struct i2c_adapter *adapter; | 30 | struct i2c_adapter *adapter; |
31 | struct dvb_frontend fe; | 31 | struct dvb_frontend fe; |
32 | bool sleeping; | 32 | bool sleeping; |
33 | struct mutex i2c_mutex; | ||
33 | u8 page; /* active register page */ | 34 | u8 page; /* active register page */ |
34 | unsigned long filters; | 35 | unsigned long filters; |
35 | struct delayed_work stat_work; | 36 | struct delayed_work stat_work; |