summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/dvb-usb/gl861.c
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2008-05-29 00:55:06 +0300
committerAntti Palosaari <crope@iki.fi>2008-05-29 00:55:06 +0300
commit1170184f08cbb403824efaf142247b565745522b (patch)
treeebf19c1335bc082e6ac3234b982e39304cdbcaea /linux/drivers/media/dvb/dvb-usb/gl861.c
parent69afedcd6c1b81218dbc0d64a948ce1106199131 (diff)
downloadmediapointer-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.c2
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);
}