diff options
author | Antti Palosaari <crope@iki.fi> | 2008-05-29 00:55:06 +0300 |
---|---|---|
committer | Antti Palosaari <crope@iki.fi> | 2008-05-29 00:55:06 +0300 |
commit | 1170184f08cbb403824efaf142247b565745522b (patch) | |
tree | ebf19c1335bc082e6ac3234b982e39304cdbcaea /linux/drivers/media/dvb/dvb-usb/gl861.c | |
parent | 69afedcd6c1b81218dbc0d64a948ce1106199131 (diff) | |
download | mediapointer-dvb-s2-1170184f08cbb403824efaf142247b565745522b.tar.gz mediapointer-dvb-s2-1170184f08cbb403824efaf142247b565745522b.tar.bz2 |
gl861: sleep a little to avoid I2C errors
From: Antti Palosaari <crope@iki.fi>
- add little sleep to avoid I2C errors arising on faster CPUs
Signed-off-by: Antti Palosaari <crope@iki.fi>
Diffstat (limited to 'linux/drivers/media/dvb/dvb-usb/gl861.c')
-rw-r--r-- | linux/drivers/media/dvb/dvb-usb/gl861.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/dvb-usb/gl861.c b/linux/drivers/media/dvb/dvb-usb/gl861.c index cc90a3054..361e4e444 100644 --- a/linux/drivers/media/dvb/dvb-usb/gl861.c +++ b/linux/drivers/media/dvb/dvb-usb/gl861.c @@ -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); } |