Skip to content

Commit

Permalink
[media] az6007: Comment the gate_ctl mutex
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mauro Carvalho Chehab committed Jan 21, 2012
1 parent d20a7f7 commit 2212501
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/media/dvb/dvb-usb/az6007.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 2212501

Please sign in to comment.