From: Antti Palosaari Date: Thu, 29 May 2008 00:55:06 +0000 (-0300) Subject: V4L/DVB (8012): gl861: sleep a little to avoid I2C errors X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f56ebe16b045861d26b81ef6683445c0144362b8;p=mv-sheeva.git 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 Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb/dvb-usb/gl861.c b/drivers/media/dvb/dvb-usb/gl861.c index 0a8ac64a4e3..10cc436b065 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); }