summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/drxk_hard.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab2011-07-10 02:59:33 +0200
committerMauro Carvalho Chehab2011-07-27 22:55:49 +0200
commitf1fe1b75d64046b693075045fe9fc5cafed9c981 (patch)
tree26669633735b8596e5ce88d27d27a2c7f4b3e42d /drivers/media/dvb/frontends/drxk_hard.c
parent[media] em28xx-i2c: Add a read after I2C write (diff)
downloadkernel-qcow2-linux-f1fe1b75d64046b693075045fe9fc5cafed9c981.tar.gz
kernel-qcow2-linux-f1fe1b75d64046b693075045fe9fc5cafed9c981.tar.xz
kernel-qcow2-linux-f1fe1b75d64046b693075045fe9fc5cafed9c981.zip
[media] drxk: Allow to disable I2C Bridge control switch
On em28xx, tda18271C2 is accessible when the i2c port is not touched. Touching on it breaks the driver. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/drxk_hard.c')
-rw-r--r--drivers/media/dvb/frontends/drxk_hard.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/drxk_hard.c b/drivers/media/dvb/frontends/drxk_hard.c
index adb454a8eb7f..523352670e73 100644
--- a/drivers/media/dvb/frontends/drxk_hard.c
+++ b/drivers/media/dvb/frontends/drxk_hard.c
@@ -2784,6 +2784,8 @@ static int ConfigureI2CBridge(struct drxk_state *state, bool bEnableBridge)
if (state->m_DrxkState == DRXK_POWERED_DOWN)
return -1;
+ if (state->no_i2c_bridge)
+ return 0;
do {
status = write16(state, SIO_HI_RA_RAM_PAR_1__A, SIO_HI_RA_RAM_PAR_1_PAR1_SEC_KEY);
if (status < 0)
@@ -6360,6 +6362,7 @@ struct dvb_frontend *drxk_attach(const struct drxk_config *config,
state->demod_address = adr;
state->single_master = config->single_master;
state->microcode_name = config->microcode_name;
+ state->no_i2c_bridge = config->no_i2c_bridge;
mutex_init(&state->mutex);
mutex_init(&state->ctlock);