[media] az6007: Comment the gate_ctl mutex
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 23 Jul 2011 12:58:38 +0000 (09:58 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 21 Jan 2012 15:44:50 +0000 (13:44 -0200)
The mutex is there to protect the I2C gate. However, for some reason,
it is being called twice:

[ 2103.542796] usbcore: registered new interface driver dvb_usb_az6007
[ 2103.772392] az6007: drxk_gate_ctrl: enable
[ 2103.793900] az6007: drxk_gate_ctrl: enable

For now, let's just comment, to allow the driver to run.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/az6007.c

index 56126d41a604343c9847158d5f26decf5f36dd9d..ed376b8292ce183dd96e9dd1b254bf9e07b0f33d 100644 (file)
@@ -52,7 +52,7 @@ static int drxk_gate_ctrl(struct dvb_frontend *fe, int enable)
        struct az6007_device_state *st;
        int status;
 
-       info("%s", __func__);
+       info("%s: %s", __func__, enable? "enable" : "disable" );
 
        if (!adap)
                return -EINVAL;
@@ -64,10 +64,14 @@ static int drxk_gate_ctrl(struct dvb_frontend *fe, int enable)
 
 
        if (enable) {
+#if 0
                down(&st->pll_mutex);
+#endif
                status = st->gate_ctrl(fe, 1);
        } else {
+#if 0
                status = st->gate_ctrl(fe, 0);
+#endif
                up(&st->pll_mutex);
        }
        return status;