Skip to content

Commit

Permalink
V4L/DVB (8012): gl861: sleep a little to avoid I2C errors
Browse files Browse the repository at this point in the history
- add little sleep to avoid I2C errors arising on faster CPUs

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed Jun 26, 2008
1 parent b38cc64 commit f56ebe1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/media/dvb/dvb-usb/gl861.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ static int gl861_i2c_msg(struct dvb_usb_device *d, u8 addr,
return -EINVAL;
}

msleep(0); /* avoid I2C errors */

return usb_control_msg(d->udev, usb_rcvctrlpipe(d->udev, 0), req, type,
value, index, rbuf, rlen, 2000);
}
Expand Down

0 comments on commit f56ebe1

Please sign in to comment.