summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2008-05-29 02:55:06 +0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-06-26 20:58:43 +0200
commitf56ebe16b045861d26b81ef6683445c0144362b8 (patch)
tree7f4a56587c0c627e4d312bb0f5b7aa8951132f15 /drivers/media
parentV4L/DVB (8011): em28xx: enable DVB for HVR-900 (diff)
downloadlinux-f56ebe16b045861d26b81ef6683445c0144362b8.tar.xz
linux-f56ebe16b045861d26b81ef6683445c0144362b8.zip
V4L/DVB (8012): gl861: sleep a little to avoid I2C errors
- 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>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/dvb/dvb-usb/gl861.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/dvb/dvb-usb/gl861.c b/drivers/media/dvb/dvb-usb/gl861.c
index 0a8ac64a4e33..10cc436b0654 100644
--- a/drivers/media/dvb/dvb-usb/gl861.c
+++ b/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);
}