projects
/
platform
/
kernel
/
kernel-mfld-blackbay.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b38cc64
)
V4L/DVB (8012): gl861: sleep a little to avoid I2C errors
author
Antti Palosaari
<crope@iki.fi>
Thu, 29 May 2008 00:55:06 +0000
(21:55 -0300)
committer
Mauro Carvalho Chehab
<mchehab@infradead.org>
Thu, 26 Jun 2008 18:58:43 +0000
(15:58 -0300)
- 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>
drivers/media/dvb/dvb-usb/gl861.c
patch
|
blob
|
history
diff --git
a/drivers/media/dvb/dvb-usb/gl861.c
b/drivers/media/dvb/dvb-usb/gl861.c
index
0a8ac64
..
10cc436
100644
(file)
--- 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);
}