diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-06-29 14:43:32 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-06-29 19:04:21 -0300 |
commit | 20bfe7ae089076b0af72a6d67f0298621ae90a9d (patch) | |
tree | 27c5aab38bcc6c34917098004055a0db70b54142 /drivers/media/dvb/frontends/drxk_hard.h | |
parent | 2a5f6720ff45e7545c3058bc6bfdb498247b4f5c (diff) | |
download | linux-20bfe7ae089076b0af72a6d67f0298621ae90a9d.tar.gz linux-20bfe7ae089076b0af72a6d67f0298621ae90a9d.tar.bz2 linux-20bfe7ae089076b0af72a6d67f0298621ae90a9d.zip |
[media] drxk: Lock I2C bus during firmware load
Don't allow other devices at the same I2C bus to use it during
firmware load, in order to prevent using the device while it is
not on a sane state.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/drxk_hard.h')
-rw-r--r-- | drivers/media/dvb/frontends/drxk_hard.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/drxk_hard.h b/drivers/media/dvb/frontends/drxk_hard.h index 36677cdc01d8..c35ab2b37795 100644 --- a/drivers/media/dvb/frontends/drxk_hard.h +++ b/drivers/media/dvb/frontends/drxk_hard.h @@ -325,6 +325,9 @@ struct drxk_state { enum DRXPowerMode m_currentPowerMode; + /* when true, avoids other devices to use the I2C bus */ + bool drxk_i2c_exclusive_lock; + /* * Configurable parameters at the driver. They stores the values found * at struct drxk_config. |