From: Antti Palosaari Date: Fri, 6 Apr 2012 10:09:23 +0000 (-0300) Subject: [media] af9035: disable frontend0 I2C-gate control X-Git-Tag: firefly_0821_release~3680^2~275^2~2505 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=852f0d9d6ffdeac28045aa9724c8e2a9ac4ffe6a;p=firefly-linux-kernel-4.4.55.git [media] af9035: disable frontend0 I2C-gate control Seems like tuners used for frontend0 are not behind demodulator I2C-gate thus gate control is not needed. Disable it for sure as it can cause problems some situations. Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb/dvb-usb/af9035.c b/drivers/media/dvb/dvb-usb/af9035.c index 9f962428368c..e1d6e6efa77b 100644 --- a/drivers/media/dvb/dvb-usb/af9035.c +++ b/drivers/media/dvb/dvb-usb/af9035.c @@ -783,6 +783,9 @@ static int af9035_frontend_attach(struct dvb_usb_adapter *adap) ret = -ENODEV; goto err; } + + /* disable I2C-gate */ + adap->fe_adap[0].fe->ops.i2c_gate_ctrl = NULL; adap->fe_adap[0].fe->callback = af9035_frontend_callback; return 0;